vite 创建vue项目后,启动失败!
来源:2-1 项目初始化--全局Vue脚手架&Vite创建项目

安安之夜
2021-06-08
写回答
1回答
-
河畔一角
2021-06-15
初步判断应该是npm的版本问题,你截图里面有一段错误提示,你可以按照提示做。
下面这段英文提示:
If you're using npm v7. make sure your package-lock.json file contains eighter "lockfileVersion": 1 or the code "hasInstallScript": true. If it doesn't have either of those. 后面还有,你可以看完...
说的意思就是,如果你的npm是7.0以上,你要确保你的packge.json里面有lockfileVersion:1或者hasInstallScript:true,
00
相似问题