npm install -g cnpm --registry=http://registry.npm.taobao.org
npm install -g vue-cli
cnpm install -g vue-cli
--配置淘宝镜像
npm config set registry http://registry.npm.taobao.org
--npm镜像安装
npm install -gd express --registry=http://registry.npm.taobao.org
--全局安装位置
npm root -g
(C:UsersAdministrator.MicroWin10-1848AppDataRoaming
pm
ode_modules)
--配置初始化
npm init -f
--运行
npm run dev
--创建工程
vue init webpack test1
D: estcli>vue init webpack test1
D: estcli>"node" "C:UsersAdministrator.MicroWin10-1848AppDataRoaming pm\node_modulesvue-cliinvue" init webpack test1
? Target directory exists. Continue? Yes
? Project name test1
? Project description A Vue.js project
? Author
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? No
? Set up unit tests Yes
? Pick a test runner jest
? Setup e2e tests with Nightwatch? Yes
? Should we run `npm install` for you after the project has been created? (recommended) npm
vue-cli · Generated "test1".
# Installing project dependencies ...