简体   繁体   English

使用 NODE js,我输入终端 npm,它开始向我显示错误。 而我解决不了

[英]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.

相关问题 我该如何解决 npm ERR! 错误:0909006C:Node.js 中的 PEM? - how can i solve npm ERR! error:0909006C:PEM in Node.js? npm,节点错误我该如何解决 - npm, node error how can i solve them 运行 npm 时无法解决错误 - I can't solve Error while running npm Start termux 应用程序上的“npm install node-session”。 然后我得到了这个错误。 如何在 termux 上安装 node-session? - "npm install node-session" on termux app. Then i got this error. How can i install node-session on termux? 我无法在节点中执行 npm 脚本为什么会发生这种情况,我该如何解决 - I can't execute npm scripts in node why is this happening and how can i solve it 我不能使用 NPM 和 Node.js - I can't use NPM and Node.js 每次启动终端时都会出现 NPM 错误消息 - Node.js - NPM error message appearing every time I start the terminal - Node.js 在我通过“npm i nodemon”安装 nodemon 后,当我尝试通过“nodemon server.js”运行它时,它给了我这个错误。 我应该怎么办? - After I installed nodemon by "npm i nodemon" , when I tried to run it by "nodemon server.js" , it gives me this error. What should I do? 类型错误数据到字符串不是 function vs 代码终端显示类型错误解释条件我是节点 js 的新手,只需解释错误 - Type Error data to string is not a function vs code terminal showing a type error explain the condition i am new to the node js ,jus explain the error 当我在 node.js 中运行 npm 时如何解决此错误 - how to solve this error when I run npm start in node.js
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM