我试图在mac 这个JS项目上运行这个JS项目,但是当我输入npm start时,它使我产生了npm错误:

我浏览任何网站都可以找到解决问题的方法,尽管我已经在我的package.json上加上了start": webpack-dev-server --mode development --open --hot,start": "node app.js"或start": "node index.html"。
I键入多个组合,如on终端:
npm install npm@latest
npm install --global --verbose promised-io
npm run snyk-protect
npm cache clean --force
...but仍然没有这样的变化是。
发布于 2021-12-30 14:24:53
看起来,您位于该存储库的根目录中。然而,package.json在frontend/中,所以您需要使用cd frontend导航。一旦进入正确的目录,npm start或npm run build就可以工作了。
请确保您已经在该目录中首先运行了npm install。
https://stackoverflow.com/questions/70532891
复制相似问题