网站首页 > 博客文章 正文
问题描述
使用 npm run serve 命令启动 Vue.js 项目时无法启动。具体报错如下:
$ npm run serve
> front-end@0.1.0 serve
> vue-cli-service serve
sh: 1: vue-cli-service: not found
npm ERR! code 127
npm ERR! path /home/codists/projects/flask-vue-blog/front-end
npm ERR! command failed
npm ERR! command sh -c vue-cli-service serve
npm ERR! A complete log of this run can be found in:
npm ERR! /home/codists/.npm/_logs/2021-06-09T13_29_30_797Z-debug.log
问题定位
1、已经使用 npm install -g @vue/cli 安装了 Vue CLI。且 package.json 文件里面也包含了 "@vue/cli-service": "~4.5.0"。
但是有可能装的有问题,所以重新安装。
解决方法
1、重新安装
$ rm -rf node_modules/
$ npm install
猜你喜欢
- 2024-09-23 zookeeper开山篇-编译安装与zk基础命令使用
- 2024-09-23 自建私有ZeroTier服务器踩坑(windows搭建私有zerotier服务器)
- 2024-09-23 CentOS 安装PHP7的正确姿势(centos安装php5.6)
- 2024-09-23 打造vuecli3+element后台管理系统(三)优化路由和vuex仓库
- 2024-09-23 |Python笔记|解决No module named 'conda'
- 2024-09-23 Linux下设置命令在任何目录下可执行(mysql、redis命令)
- 2024-09-23 风靡全球的Ollama v0.3.8新版到达
- 2024-09-23 前端CLI脚手架思路解析并从0到1搭建
- 2024-09-23 Vue2的多种使用安装方法和出现问题的解决方法
- 2024-09-23 RHEL8和CentOS8怎么设置网络(旧方法被废弃)
你 发表评论:
欢迎- 最近发表
-
- 给3D Slicer添加Python第三方插件库
- Python自动化——pytest常用插件详解
- Pycharm下安装MicroPython Tools插件(ESP32开发板)
- IntelliJ IDEA 2025.1.3 发布(idea 2020)
- IDEA+Continue插件+DeepSeek:开发者效率飙升的「三体组合」!
- Cursor:提升Python开发效率的必备IDE及插件安装指南
- 日本旅行时想借厕所、买香烟怎么办?便利商店里能解决大问题!
- 11天!日本史上最长黄金周来了!旅游万金句总结!
- 北川景子&DAIGO缘定1.11 召开记者会宣布结婚
- PIKO‘PPAP’ 洗脑歌登上美国告示牌
- 标签列表
-
- ifneq (61)
- messagesource (56)
- aspose.pdf破解版 (56)
- promise.race (63)
- 2019cad序列号和密钥激活码 (62)
- window.performance (66)
- qt删除文件夹 (72)
- mysqlcaching_sha2_password (64)
- ubuntu升级gcc (58)
- nacos启动失败 (64)
- ssh-add (70)
- jwt漏洞 (58)
- macos14下载 (58)
- yarnnode (62)
- abstractqueuedsynchronizer (64)
- source~/.bashrc没有那个文件或目录 (65)
- springboot整合activiti工作流 (70)
- jmeter插件下载 (61)
- 抓包分析 (60)
- idea创建mavenweb项目 (65)
- vue回到顶部 (57)
- qcombobox样式表 (68)
- vue数组concat (56)
- tomcatundertow (58)
- pastemac (61)
本文暂时没有评论,来添加一个吧(●'◡'●)