问题:
PS E:\houtai\test> npm run dev
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path E:\houtai\test/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'E:\houtai\test\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\Administrator\AppData\Local\npm-cache\_logs\2024-05-29T09_21_56_684Z-debug.log
PS E:\houtai\test>
解决:
总结:
-
确认当前目录是正确的,即你是在项目的根目录下运行
npm run dev
命令。