【vue】vue安装卡住/报错

网上有很多教程怎么安装:

安装cnpmnpm install -g cnpm --registry=https://registry.npm.taobao.org
升级npmcnpm install npm -g

在用 Vue.js 构建大型应用时推荐使用 NPM 安装:
# 最新稳定版
$ cnpm install vue

命令行工具
Vue.js 提供一个官方命令行工具,可用于快速搭建大型单页应用。
# 全局安装 vue-cli
$ cnpm install --global vue-cli

# 创建一个基于 webpack 模板的新项目
$ vue init webpack my-project

卡住和报错这么多坑,总结一下:

(1)下载依赖卡住

更改镜像

临时使用:npm --registry https://registry.npm.taobao.org install express
永久使用:npm config set registry https://registry.npm.taobao.org

配置后可通过下面方式来验证是否成功
   npm config get registry
   or
   npm info express
安装cnpm时指定镜像,这个还不知道怎么用。npm install -g cnpm --registry=https://registry.npm.taobao.orgcnpm install express

(2)安装chromedriver卡住
npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
 

原文地址:https://www.cnblogs.com/dongzhuangdian/p/9471860.html

时间: 2024-07-30 09:27:15

【vue】vue安装卡住/报错的相关文章

vue element-ui typescript tree报错 === Property 'getCheckedNodes' does not exist on type 'Element | Element[] | Vue | Vue[]'.

import { Tree } from 'element-ui' const ref = <Tree>this.$refs.tree ref.getCheckedNodes() vue element-ui typescript tree报错 === Property 'getCheckedNodes' does not exist on type 'Element | Element[] | Vue | Vue[]'. 原文地址:https://www.cnblogs.com/cynthi

Ceph安装QEMU报错:User requested feature rados block device configure was not able to find it

CentOS6.3中,要想使用Ceph的block device,需要安装更高版本的QEMU. 安装好ceph后,安装qemu-1.5.2 # tar -xjvf qemu-1.5.2.tar.bz2 # cd qemu-1.5.2 # ./configure --enable-rbd 一定要加上--enable-rbd选项,这样qemu才能支持rbd协议. 这一步可能会报错: ERROR: User requested feature rados block device configure

Python virtualenv安装库报错SSL: CERTIFICATE_VERIFY_FAILED

Python virtualenv安装库报错SSL: CERTIFICATE_VERIFY_FAILED 问题描写叙述 使用pip依照virtualenv报错,例如以下: pip install virtualenv Collecting virtualenv /opt/python27/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An

CentOS安装过程报错

Unable to read group information from repositories.  This is a problem with the generation of your install tree 网上搜到说是bug http://bbs.linuxtone.org/thread-16947-1-1.html 个人解决办法:把boot大小由200改为1024安装不报错

安装MySQL-python报错error: command &#39;gcc&#39; failed with exit status 1

[[email protected] MySQL-python-1.2.3]# python setup.py install function) .... _mysql.c:133: error: 'ER_SYNTAX_ERROR' undeclared (first use in this function) _mysql.c:380: error: '_mysql_ConnectionObject' has no member named 'connection' _mysql.c:382

Centos安装fabric 报错:error: ‘FFI_DEFAULT_ABI’ undeclared (first use in this function)

Centos安装fabric 报错: error: 'FFI_DEFAULT_ABI' undeclared (first use in this function) 需要安装libffi-devel Debian或Ubuntu需要安装 libffi-dev

python27(32位)安装模块报错“error: Unable to find vcvarsall.bat”

1)首先,下载一个Microsoft Visual C++ Compiler for Python 2.7的补丁,下载地址在这里: http://www.microsoft.com/en-us/download/details.aspx?id=44266 2) 然后下载安装VS2008(对应VER9.0),如果电脑上安装的是VS2010(对应VER10.0), 可以在VS命令行下执行:SET VS90COMNTOOLS=%VS100COMNTOOLS% 如果你安装的是 2012 版(对应VER1

CentOS 6安装KVM后安装虚拟机报错

安装KVM在配置完桥接网卡后,安装虚拟机报错. 附有CentOS 6安装KVM文档,和安装过程截图,可否有人能看出其中问题所在,小女子不胜感激.

安装nghttp2 报错error: Libtool library used but &#39;LIBTOOL&#39; is undefined

nghttp2 报错error: Libtool library used but 'LIBTOOL' is undefined 如果重新安装libtool和autoconf升级到2.69后,还是报错, 则进行下面的操作: 1,查看aclocal的路径 aclocal --print-ac-dir 显示/usr/local/share/libtool/m4 ls看看里面没有m4文件. 则copy /usr/share/libtool/m4里面的m4文件到此目录下. 2,cd到nghtt2目录 执