C S*_*per 2 javascript npm reactjs package.json
运行 npm start 时,出现错误 -
PS D:\React\operations_app_tut> npm start
npm ERR! path D:\React\operations_app_tut\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'D:\React\operations_app_tut\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\IT-DI\AppData\Roaming\npm-cache\_logs\2020-12-16T05_56_02_304Z-debug.log
Run Code Online (Sandbox Code Playgroud)
检查物理路径时确保文件存在 -
项目结构供参考 -
我引用了几个网站并再次运行 -npm install 但同样的错误仍然存在。
小智 5
您在错误的文件夹中运行。npm start另外为什么外面有 package-lock.json 。
移动到D:\React\operations_app_tut\operations_app_tut目录然后运行npm start
| 归档时间: |
|
| 查看次数: |
9019 次 |
| 最近记录: |