edrp.cn的Blog

学习,需要交流,欢迎大家和我共同来学习C#,ASP.NET,MS SQL Server开发Web项目,欢迎大家和我交流

博客园 首页 新随笔 联系 订阅 管理

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 ...

 

posted on 2019-09-03 14:44  edrp.cn  阅读(152)  评论(0编辑  收藏  举报