问题:
npm ERR! code ENOLOCAL
npm ERR! Could not install from "src\i18n\languages" as it does not contain a package.json file.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\wangshuming\AppData\Roaming\npm-cache\_logs\2020-11-05T10_44_37_237Z-debug.log
解决:
方一:
解决办法:删掉项目文件夹中的package-lock.json文件,先后运行npm install -g及npm install命令即可解决问题
方二:
更新npm:
npm install -g install
将项目下的node_modules删除之后,使用npm install重新安装
rm -r -f node_modules
cnpm install(我使用了淘宝镜像安装,不然使用npm安装,国内网速较慢)