npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://github.com/npm/cli/issues>
npm ERR! A complete log of this run can be found in:
npm ERR! /home/abhijith/.npm/_logs/2021-05-12T16_20_42_200Z-debug.log
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... package.json
尝试安装react{npx react create app}时出错
我尝试了sudonpm缓存,sudonpm缓存——强制清除,但仍然得到相同的错误
这是一个与npm软件包和在我处安装最新版本的npm有关的错误:
npm install -g npm@latest
在安装了最新版本的npm之后,我的问题也得到了解决。但是我需要在npm安装-g之前使用
。否则会出现一些访问被拒绝的警告和错误。sudo
npm@latest