vue在npm run dev时提示找不到package.json文件或者 json文件中没有dev
PS E:\vuetyl> npm run dev
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open ‘E:\vuetyl\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\94780\AppData\Roaming\npm-cache_logs\2019-10-10T21_48_54_814Z-debug.log

原因:这个文件中有2个工程
解决方案:不能有2个工程,需要cd到对应的工程,再npm run dev就可以运行成功

Logo

前往低代码交流专区

更多推荐