0

当我想在反应时运行我的项目时,会出现此错误...如何解决?

W:\Burgerapp>npm start
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path W:\Burgerapp\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'W:\Burgerapp\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!     C:\Users\Polymer\AppData\Roaming\npm-cache\_logs\2020-08-11T13_03_57_137Z-debug.log ```
4

1 回答 1

0

似乎你在错误的地方写了“npm start”,因为目录中没有“package.json”文件。

于 2020-08-11T13:17:56.467 回答