angular6 cli创建新项目报错:npm WARN deprecated istanbul-lib-hook@1.2.1: 1.2.0 should have been a major version bump 解决办法


 

新建项目

admin为项目名称

ng new admin --routing --style=sass

 

报错信息

npm WARN deprecated istanbul-lib-hook@1.2.1: 1.2.0 should have been a major version bump
npm ERR! Unexpected end of JSON input while parsing near '...DHDJTFiu5VJ4/XoyPZ3HW'

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2018-08-31T02_09_46_334Z-debug.log
Package install failed, see above.

 

 解决办法

 

 

使用ng new admin创建项目时报错

npm WARN deprecated istanbul-lib-hook@1.2.1: 1.2.0 should have been a major version bump
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: load-json-file@^1.0.0 (node_modules\read-pkg\node_modules\load-json-file):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Unexpected end of JSON input while parsing near '...:{"node":">=4"}},"4.0'

npm ERR! Unexpected end of JSON input while parsing near '...","jshint":"^2.6.0","'

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2018-08-31T02_47_12_430Z-debug.log
Package install failed, see above.

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM