安装@vue/cli后报错 bash: vue: command not found
2019-03-06 12:05
357 查看
如题,npm install -g @vue/cli后运行vue --version报错
不仅如此, bash: node: command not found
原因是环境变量出了问题,解决方法如下:
首先找到node安装在哪,像我是安装在F盘下,复制路径F:\user_program\nodejs\
此电脑 --> 属性 --> 高级系统设置 --> 环境变量 -->找到系统变量的Path --> 把前面的路径复制进来,确定保存
其次要注意的是,安装node.js 时候自带的npm 默认全局安装在C盘,找到路径,像我如下图是C:\Users\xupei\AppData\Roaming\npm
再回到环境变量-->找到用户变量的Path --> 点击编辑path,把路径复制进来,确定保存
问题就解决了
相关文章推荐
- Mac安装Vue-cli时 提示bash: vue: command not found问题
- oracle安装完成之后,执行sqlplus命令,提示:bash: sqlplus: command not found...
- 搭建前端vue环境,安装vue-cli遇到Please try running this command again as root/Administrator的解决方案
- Redis安装完后redis-cli无法使用(redis-cli: command not found)
- 使用pecl install 命令安装扩展库报错:-bash: pecl: command not found
- -bash : xxx : command not found 新安装Linux后,安装一些必须软件(持续更新……)
- bash: vue: command not found
- 【转】mac终端安装node时候,显示“-bash: brew: command not found”,怎么解决?
- 安装 MySQL报错 -bash: mysql: command not found
- Mac OS X EL Capitan MAC OX 10.11 安装cocoapods后还是提示-bash :pod command not found 解决办法
- redhat 安装yum教程(解决依赖关系)-bash: yum: command not found 问题解决
- -Bash: Unzip: Command Not Found解决方法 安装unzip
- bash: vue: command not found
- vue.js 错误提示bash: vue: command not found
- 安装ns-2.27,提示bash:ns:command not found
- 最小化安装CentOS 6.4 解决 -bash: locate: command not found 错误
- -Bash: Unzip: Command Not Found解决方法 安装unzip
- 升级10.11后使用CocoaPod出现-bash: pod: command not found 解决办法 及其CocoaPod的安装
- ns2 安装中的 bash: $'/r': command not found 问题
- 如何解决-bash: jstack: command not found,Linux安装jstack