解决npm run serve启动项目报错
解决npm run serve启动项目报错输入pnpm run serve报错信息:ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND No package.json (or package.yaml, or package.json5) was found in "D:\wen jian\Project-vue-shp".首先 cd到根目录下cdapp(根目录)如果此时启动
·
解决npm run serve启动项目报错
输入npm run serve
报错信息:
ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND No package.json (or package.yaml, or package.json5) was found in "D:\wen jian\Project-vue-shp".
首先 cd到根目录下
cd app(根目录)
如果此时启动项目的话可能会报错:
ERR_PNPM_NO_SCRIPT Missing script: serve
其次 npm install
最后启动项目 npm run serve
如果此时启动项目还是会报错,可以将node_modules删除重新安装(必须安装在根目录下)
npm install module --save
npm install
npm run serve
更多推荐
已为社区贡献1条内容
所有评论(0)