首页 > 解决方案 > @vue-cli 安装错误,无法安装 vue-cli

问题描述

$ npm i -g @vue/cli
npm WARN deprecated hoek@5.0.4: This version is no longer maintained.Please upgrade to the latest version.
npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead
/Users/terryakishin/.npm-global/bin/vue -> /Users/terryakishin/.npm-global/lib/node_modules/@vue/cli/bin/vue.js
+ @vue/cli@3.2.1
updated 3 packages in 37.486s


$ vue --version
-bash: vue: command not found

$ vue create front
-bash: vue: command not found

知道我在这里做错了什么吗?请回答我为什么它不起作用。更新 MacOS 后,vue.js 无法正常工作。

$ node -v
v8.11.3
$ npm -v
5.6.0

标签: node.jsvue.js

解决方案


推荐阅读