简体   繁体   English

npm启动错误-React.js

[英]npm start errors - React.js

I am trying to run a server so I can start coding my website. 我正在尝试运行服务器,以便可以开始对网站进行编码。 However, I run "npm start" I have been greeted with errors . 但是,我运行“ npm start”时遇到了错误 The steps to fixing this error are laid out, however, for step three I do not see babel-loader within my package.json. 修复了此错误的步骤,但是对于第三步,我在package.json中看不到babel-loader。 In addition, I am not sure if the npm ERR!(s) I get on the bottom are caused because of the issue on top or another issue in itself. 另外,我不确定我排在最底下的npm ERR!是由于顶部的问题还是本身的其他问题引起的。

package.json 的package.json

"runs" npm ls babel-loader “运行” npm ls babel-loader

It looks like you have globally installed babel-loader@8.0.2 . 看来您已经全局安装了babel-loader@8.0.2 See #6, it points to the exact case you have. 参见#6,它指出了您遇到的确切情况。

Remove it from your home directory and that should fix it. 从您的主目录中删除它,应该可以修复它。

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

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