Vue编译错误

vue脚手架 @vue/cli3.0.x运行项目提示with message spawn vue-cli-service ENOENT

vue脚手架 @vue/cli3.0.x运行项目提示Error while running task C:Usersxxxxxxxx:serve with message spawn vue-cli-service ENOENT

  1. 删除项目中的 【node_modules】文件夹和 【package-lock.json】文件
  2.  进入命令窗口cmd,进入项目目录,最后执行 npm install
  3. vue ui

再次运行就不会出现这个问题了。具体是如何导致的,我也不太清楚,查看网上大佬们说的是[你安装的时候可能用的npm进行安装,然后cli内部的有可能和它不一致],至于具体是不是,欢迎大家评论

--------------------------------------

Error running vue:
Error while running task E:\ vue \cistudy-frontend:serve with message ‘spawn’ vue-cli-service ENOENT ‘

The solution is as follows:
re-import the project in the vue visual interface will prompt the lack of “node_modules dependency”. The previous choice was still to import, this time choose to install the node_modules dependency and then import, the installation steps are as follows:

  1. in CMD into the project directory (this is very important!!
  2. execute NPM install
  3. re-import in the visualization panel.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值