无法在 VS Code 中运行 npm start

我想运行 npm start,但不幸的是,它显示了一个错误。我尝试清理缓存,删除node.js,然后重新安装,但没有用

这是错误的样子:

npm ERR! syscall open
npm ERR! path /Users/burgalmail.ru/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory,open '/Users/burgmalmail.ru/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/burgalmail.ru/.npm/_logs/2021-08-01T09_29_20_184Z-debug.log
MacBook-Pro:Amazona Ecommerce burgalmail.ru$

我不知道如何解决这个问题。

这是我的 package.json 文件:

  "name": "frontend","version": "1.0.0","description": "","main": "index.js","scripts": {
    "start": "live-server src --verbose","test": "echo \"Error: no test specified\" && exit 1"
  },"author": "","license": "ISC","devDependencies": {
    "live-server": "^1.2.1"
  }
}

还有,我有 package-lock.json

谢谢!

qq7068127 回答:无法在 VS Code 中运行 npm start

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2670.html

大家都在问