相关疑难解决方法(0)

npm 错误!http://registry.npmjs.org/ansi-escapes 上的 json 响应正文无效原因:JSON 输入意外结束

我安装了 nodejs 和 npm 我尝试运行命令

npm install -g create-react-app

但它停在下面的错误处

freduah@freduah:~$ npm install -g create-react-app
npm WARN registry Unexpected warning for http://registry.npmjs.org/: Miscellaneous Warning EAI_AGAIN: request to http://registry.npmjs.org/create-react-app failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org
npm WARN registry Using stale data from http://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! code FETCH_ERROR
npm ERR! errno FETCH_ERROR
npm ERR! invalid json response body at http://registry.npmjs.org/ansi-escapes reason: Unexpected end of JSON input

npm ERR! A complete log of this run can be …
Run Code Online (Sandbox Code Playgroud)

node.js npm

11
推荐指数
4
解决办法
1万
查看次数

标签 统计

node.js ×1

npm ×1