当前位置 : 主页 > 网络编程 > JavaScript >

ionic 和angular 项目常见问题的解决

来源:互联网 收集:自由互联 发布时间:2021-06-28
gistfile1.txt 症状:npm ERR! errno 1npm ERR! base@0.0.1 ionic:serve: `npm run serve`npm ERR! Exit status 1npm ERR!npm ERR! Failed at the base@0.0.1 ionic:serve script.npm ERR! This is probably not a problem with npm. There is likely addi
gistfile1.txt
症状:npm ERR! errno 1
npm ERR! base@0.0.1 ionic:serve: `npm run serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the base@0.0.1 ionic:serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above
换了个文件夹就执行不起来。。。

用下面的方法:
rm -rf node_modules
rm package-lock.json
npm cache clear --force
npm install

npm install windows下面执行可能会报权限错误  只有一条规律  反复执行这一条指令   很奇怪是吧  一条指令反复执行就对了。。
网友评论