我一直在尝试开始学习React和JSX,但是我在使用create-react-app时遇到了问题。每次使用它时,它最终都会指出它正在中止安装,并且npm install --save save-exact --loglevel error react react-dom react-scripts
失败了。它还指出在安装中止之前,添加了许多软件包并找到了一定数量的漏洞。我曾尝试寻找其他方法来从头开始创建React应用,并按照这些教程进行操作,只会遇到问题,并且也会失败。
节点版本10.15.2-发生相同的错误。 恢复为节点版本8.15.1-仍然发生相同的错误。
NPM版本5.8.0尚未更改。
npm cache clean --force
未更改,但收到错误。
如果有人可以阐明我下一步可能会尝试的内容或哪些其他信息可能会有所帮助,我将不胜感激。谢谢。尝试npx create-react-app my-app
C:\Users\User\Desktop\Programming Courses\YouTube Tutorials\Learn React.js>npx c
reate-react-app my
'0' is not recognized as an internal or external command,
operable program or batch file.
Creating a new React app in C:\Users\User\Desktop\Programming Courses\YouTube Tu
torials\Learn React.js\my.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
'0' is not recognized as an internal or external command,
operable program or batch file.
+ react-dom@16.8.3
+ react@16.8.3
+ react-scripts@2.1.5
added 1813 packages from 716 contributors and audited 36230 packages in 77.867s
found 63 low severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts
has failed.
Deleting generated file... node_modules
Deleting generated file... package.json
Done.
C:\Users\User\Desktop\Programming Courses\YouTube Tutorials\Learn React.js>