[英]I keep running into the same error when trying to run "npm start" in my terminal in VS code : npm not being able to find a file. What should I do?
enter image description here enter image description here I have tried to run "npm start" within my terminal on VS code on a mac.在此处输入图像描述 在此处输入图像描述我已尝试在我的终端中在 Mac 上的 VS 代码上运行“npm start”。 I keep running into the same issue.我一直遇到同样的问题。
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/ericwehder/Desktop/Web Dev/Typescript/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/ericwehder/Desktop/Web Dev/Typescript/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
Inside package.json
add this script.在package.json
添加此脚本。
"scripts": {
"dev": "lite-server"
},
Then run the following command in your terminal to start:然后在终端中运行以下命令启动:
npm run dev
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.