[英]with NODE js, I type in Terminal npm, and it starts showing me the error. And I can't solve it
When I write on Visual Studio Code and I want to verify the result with Node.js I write on the Terminal npm start
it shows me.当我在 Visual Studio Code 上编写并想使用 Node.js 验证结果时,我在终端npm start
显示。 And I can't solve it.而我解决不了。 Note that the version for Node 6.14.8.请注意 Node 6.14.8 的版本。 And laptop device:MacBook Air和笔记本电脑设备:MacBook Air
MacBook-Air-alkhas-b-rjayy:new app 19:2 rjayy$ cd my-app
MacBook-Air-alkhas-b-rjayy:my-app rjayy$ npm start
> my-app@0.1.0 start /Users/rjayy/Desktop/react/my-app/src/new app 19:2/my-app
> react-scripts start
sh: react-scripts: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! my-app@0.1.0 start: `react-scripts start`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the my-app@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/rjayy/.npm/_logs/2021-03-09T17_37_55_559Z-debug.log
MacBook-Air-alkhas-b-rjayy:my-app rjayy$
you need to install the necessary libraries.您需要安装必要的库。
cd my-app MacBook-Air-alkhas-b-rjayy:my-app cd my-app MacBook-Air-alkhas-b-rjayy:my-app
and then接着
npm install npm安装
and then接着
npm start npm启动
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.