不幸的是,我未能使用创建react应用程序项目
npx create-react-app signup_react
但是我用这个命令做了很多项目。我需要帮助解决此问题,错误如下所示,
Creating a new React app in /media/imdadul/PERSONAL/Professional Works/React_Projects/signup_react.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
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/imdadul/.npm/_logs/2021-07-09T16_19_45_838Z-debug.log
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... node_modules
Deleting generated file... package.json
Deleting signup_react/ from /media/imdadul/PERSONAL/Professional Works/React_Projects
Done.
n、 b:请关注以上错误并帮助我了解这一点,谢谢。
npm版本:7.9.0
节点版本:v15.14.0
下面是这个问题的截图,
2条答案
按热度按时间k7fdbhmy1#
@alex,请关注这里,更新后的版本发生了变化
npm_version: 7.19.1
我已经照你说的做了,但我能跑npm cache clean
运行此命令,它会显示下面给出的另一个错误,现在它显示了另一个错误,使用
npx create-react-app signup_react
命令,如下所示,请关注以上错误解释
piah890a2#
更新至最新版本
Node.js
,然后再试一次npm install -g npm
&npm cache clean
更多信息:从未调用过npm err cb()