简体   繁体   English

React npm 启动问题 - node.js 最新版本

[英]React npm start issue - node.js latest version

I have installed the latest version of node.js and tried to create my very first react application.The applications gets created fine.but when i navigate to the application and try to use the command npm start,it throws an error.I have tried to remove the npm_modules,update npm,npm install create-react-app command.Still the problem persists.Any idea or suggestion will be very helpful!Thanks in advance!我已经安装了最新版本的 node.js 并尝试创建我的第一个反应应用程序。应用程序创建得很好。但是当我导航到应用程序并尝试使用命令 npm start 时,它会引发错误。我试图删除npm_modules,update npm,npm install create-react-app 命令。问题仍然存在。任何想法或建议都会非常有帮助!提前致谢!

Well the issue is resolved..i just had to set my path variable to c:\windows\system32 using the command PATH=%PATH%;c:\windows\system32 !Thanks for all those who tried to help me!那么问题已经解决了..我只需要使用命令PATH=%PATH%;c:\windows\system32 将我的路径变量设置为 c:\windows\system32 !感谢所有试图帮助我的人!

If you use CRA, it is recommended to use npx instead of npm.如果使用 CRA,建议使用 npx 代替 npm。

npx create-react-app myapp

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM