简体   繁体   English

无法安装Vue CLI

[英]Can't install vue cli

I'm trying to install the Vue Cli but I'm getting the following error: 我正在尝试安装Vue Cli,但出现以下错误:

$ npm install -g @vue/cli
npm ERR! code E404
npm ERR! 404 Not Found: @vue/cli@latest

Any idea what I'm doing wrong here? 知道我在做什么错吗?

Here's some of my environment info: 这是我的一些环境信息:

$ npm -v
6.1.0
$ node -v
v8.11.1

what is the URL you get with this command npm get registry and let's see the output when you run curl -v $URL -o /dev/null - replace $URL with the one you got from previous command. 使用npm get registry命令npm get registry的URL是什么,让我们看一下运行curl -v $URL -o /dev/null时的输出-将$ URL替换为从上一命令获取的URL。 eg curl -v https://registry.npmjs.org/ -o /dev/null 例如curl -v https://registry.npmjs.org/ -o /dev/null

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM