vue init webpack Travel bash: vue: command not found

问题分析:

        提示文件不存在,可是文件明明存在于指定文件夹。

解决方法:

1.打开管理员权限下的命令提示符,输入:

npm install -g cnpm --registry=https://registry.npm.taobao.org

2.等待运行完毕,再输入:

cnpm install -g vue-cli

3.重新初始化vue init webpack,可以运行了!

原创文章 119 获赞 61 访问量 4万+

猜你喜欢

转载自blog.csdn.net/Ciel_Y/article/details/105128617
今日推荐