创建Angular项目时出现npm错误

时间:2019-11-29 18:15:17

标签: node.js npm angular-cli

 npm WARN registry Using stale data from https://registry.npmjs.org/ because the host is inaccessible -- are you offline?
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
npm WARN deprecated fsevents@1.2.9: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size
npm WARN deprecated core-js@2.6.10: core-js@<3.0 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm ERR! Unexpected end of JSON input while parsing near '...:{"integrity":"sha512'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\ACER\AppData\Roaming\npm-cache\_logs\2019-11-29T17_34_43_653Z-debug.log

`

我尝试创建项目,但是每次都会出现此错误,并且我尝试清除npm缓存,但是它也不能解决该错误。

0 个答案:

没有答案