ENOENT: no such file or directory, open ‘E:\vue\twopro\package.json‘

1.发生错误
PS E:\vue\twopro> npm run serve
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path E:\vue\twopro\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open ‘E:\vue\twopro\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\ASUS\AppData\Roaming\npm-cache_logs\2020-09-16T00_56_34_221Z-debug.log
PS E:\vue\twopro>

2.这个npm install 有问题,找到文件里面进行npm install, 安装好了之后进行 npm run serve

猜你喜欢

转载自blog.csdn.net/hgfhjtff/article/details/108614502