美文网首页
002.nodejs环境配置

002.nodejs环境配置

作者: airkisser | 来源:发表于2017-07-22 21:48 被阅读0次

1.安装nodejs(http://nodejs.cn/download/)

image.png

2.配置模块全局安装路径

npm config set prefix "D:\nodejs\node_modules\node_global"
npm config set cache "D:\nodejs\node_modules\node_cache"

配置环境变量

PATH = D:\nodejs\node_modules\node_global

3.配置淘宝镜像

npm config set registry https://registry.npm.taobao.org

4.安装cnpm

npm install cnpm -g

5.安装其他全局模块

cnpm install bower vue-cli -g

相关文章

网友评论

      本文标题:002.nodejs环境配置

      本文链接:https://www.haomeiwen.com/subject/zyxpkxtx.html