Angular npm错误!解析时JSON输入意外结束
在angular project中执行新项目名称时出现以下错误 npm警告不推荐的循环-json@0.5.9:CircularJSON仅在维护中,flatted是其继任者。Angular npm错误!解析时JSON输入意外结束,angular,npm,angular-cli,Angular,Npm,Angular Cli,在angular project中执行新项目名称时出现以下错误 npm警告不推荐的循环-json@0.5.9:CircularJSON仅在维护中,flatted是其继任者。 npm错误!在“…:“~0.0.0”、“webpack de”附近进行分析时,JSON输入意外结束 npm ERR!此运行的完整日志可在中找到: npm ERR!C:\Users\Abhi\AppData\Roaming\npm-cache\u logs\2018-12-13T10\u 24\u 02\u 151Z-debu
npm错误!在“…:“~0.0.0”、“webpack de”附近进行分析时,JSON输入意外结束 npm ERR!此运行的完整日志可在中找到:
npm ERR!C:\Users\Abhi\AppData\Roaming\npm-cache\u logs\2018-12-13T10\u 24\u 02\u 151Z-debug.log
软件包安装失败,请参阅上文 我所尝试的:
1.npm缓存清理--强制
2.npm缓存验证
3.npm ERR!在“…5.0”、“rimraf”:“^2.2.8”附近进行分析时,JSON输入意外结束 当前版本:
节点:10.14.2
NPM:6.5.0
操作系统:Windows您不需要卸载或安装任何东西。只需
npm cache clean --force
然后
npm install
可以。在管理模式下打开cmd,然后运行以下命令以指定
npm cache clean --force
go in the c:/user/user_name/AppData/Roaming/npm => clean this folder
npm install -g @angular/cli
ng new project_name
希望它能起作用。这个问题通过转到C:\Users\USERNAME\AppData\Roaming\npm缓存并手动删除其内容,然后以管理员身份运行cmd并在尝试创建项目设置的文件夹中运行
npm install
来解决,只需运行以下两个命令:
npm缓存清理--强制执行
npm安装
然后,运行设置项目目录所需的命令。尝试此
npm uninstall-g angular cli npm cache clean
之后npm install-g angular cli
try@Abhishek安装package.json时出现相同错误file@PatrickHollweck我是个新手,你能帮我吗请告诉我在哪里可以找到该文件?与其他现有答案有什么区别?您不需要卸载或安装任何东西只要npm cache clean--force
,然后npm install
就可以了
delete node_modules folder
delete package-lock.json
npm clear -f cache
npm i