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:\Users\Administrator.MicroWin10-1848\AppData\Roaming\npm\node_modules)

--配置初始化
npm init -f

--运行
npm run dev

--创建工程
vue init webpack test1

D:\testcli>vue init webpack test1

D:\testcli>"node" "C:\Users\Administrator.MicroWin10-1848\AppData\Roaming\npm\\node_modules\vue-cli\bin\vue" 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 ...

 

相关文章:

  • 2021-05-20
  • 2021-12-22
  • 2021-10-28
  • 2021-12-22
  • 2022-01-16
  • 2021-10-17
  • 2021-09-08
猜你喜欢
  • 2021-04-26
  • 2021-11-08
  • 2021-11-04
  • 2021-05-30
相关资源
相似解决方案