node.js - @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
解决方案
推荐阅读
- javascript - 有没有办法远程测试本机反应?
- shopify - 我的 Liquid 语法是错误的,还是缺少参考?
- python - 使用正则表达式搜索和删除两个标记之间的字符串
- angular - 使用 Jest 进行 ng 测试失败,并在 npm 包上显示 objValue.concat
- python - 减少组合生成脚本的执行时间
- apache-flink - 如何在 Flink keyBy 中使用 lambda 函数
- alexa - 如果在相同的意图中获得不同的插槽值,我可以做出不同的回答吗,AWS Alexa
- java - 以非编程方式将 XML 转换为 Java 类的 IDE 工具
- java - spring 请求参数是嵌套的 json 验证失败
- postgresql - 了解 Postgres SERIALIZABLE 隔离级别