欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

npm run serve 报错

程序员文章站 2022-05-13 17:19:20
...

npm run serve 报错如下

PS E:\code\newProject\vue3-ts-pro> npm run serve
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path E:\code\newProject\vue3-ts-pro\package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'E:\code\newProject\vue3-ts-pro\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\Roaming\npm-cache\_logs\2021-03-04T06_54_53_160Z-debug.log

检查后发现目录不对,多跳出了一层
打开正确目录即可cd .\vue3-json-schema\ 解决问题

相关标签: npm npm