简体   繁体   English

使用“npm start”命令反应应用程序问题

[英]React App Problem With “npm start” command

After Installing React App, I encountered with this error after running the command "npm start"安装 React App 后,运行命令“npm start”后遇到此错误

Cannot destructure property compile of 'undefined' or 'null'.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! tanaaz@0.1.0 start: node scripts/start.js

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the tanaaz@0.1.0 start script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


npm ERR! A complete log of this run can be found in:

npm ERR! /Users/****/.npm/_logs/2018-12-06T11_41_02_180Z-debug.log

And The Fix for this error is这个错误的修复是

  • Add this line to the System Variables - %SystemRoot%\system32将此行添加到系统变量 - %SystemRoot%\system32
  • Reboot Your PC重启你的电脑
  • Try Running "npm start" command Again.尝试再次运行“npm start”命令。 You may now have no issues.您现在可能没有任何问题。

If You still have some errors如果您仍然有一些错误

  • Try this commands试试这个命令

1)npm i -g create-react-app 1)npm i -g create-react-app

2)create-react-app my-react-app 2)创建反应应用程序我的反应应用程序

Now You are Good to GO... :)现在你对 GO 很好...... :)

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

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