1:如果运行命令后出现如下错误,则需要以管理员的身份运行命令行工具
C:\Users\dell\Desktop\vueApp>npm i axios -g
Unhandled rejection Error: EPERM: operation not permitted, open 'C:\Program Files\nodejs\node_cache\_cacache\tmp\15dfd17c'

npm ERR! cb() never called!

npm ERR! This is an error with npm itself. Please report this error at:
npm ERR!     <https://github.com/npm/npm/issues>


2:若在运行Vue项目时这样报错,可以先将node_modules文件夹删除再重新运行npm install解决
C:\Users\dell\Desktop\vueApp>npm run dev

> vueapp@1.0.0 dev C:\Users\dell\Desktop\vueApp
> cross-env NODE_ENV=development webpack-dev-server --open --hot

module.js:529
    throw err;
    ^

Error: Cannot find module 'nice-try'

 

Logo

前往低代码交流专区

更多推荐