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-run实现自动化任务的方法示例
-
关于vue的npm run dev和npm run build的区别介绍
-
基于vue-cli npm run build之后vendor.js文件过大的解决方法
-
vue中Npm run build 根据环境传递参数方法来打包不同域名
-
ubuntu vps安装docker报错:Cannot connect to the Docker daemon at unix:///var/run/docker.sock.问题解决
-
vue踩坑记-在项目中安装依赖模块npm install报错
-
window环境下npm install node-sass报错的解决方法
-
Vue -- vue-cli(vue脚手架) npm run build打包优化
-
Tomcat9+JDK 13报错Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run thi
-
vue 动态设置img的src地址无效,npm run build 后找不到文件的解决