Nodejs Windows 安装

11-13 1,696 views

下载

前往https://nodejs.org/en/download/下载 Windows Binary (.zip) 版
解压到 D:\Program_Files\nodejs

设置

npm config set prefix "D:\Program_Files\nodejs"
npm config set cache "D:\Program_Files\nodejs\npm_cache"

环境变量

下面这一步非常关键,我们需要设置系统变量。进入我的电脑→属性→高级→环境变量。在系统变量下新建“NODE_PATH”,输入“D:\Program_Files\nodejs\node_modules”。

设置镜像

https://npm.taobao.org/
这是一个完整 npmjs.org 镜像,你可以用此代替官方版本(只读),同步频率目前为 10分钟 一次以保证尽量与官方服务同步。

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

使用npm 安装 bower

npm install bower -g; -g表示全局

npm install bower -g

node async模块 waterfall用法

var async = require("async"); async.waterfall([ function(callback){ console.log(1); callback(null,1); //如果有error异常处理,...

阅读全文

Vue + Parse Platform

该架构是一整套基于 nodejs 全栈的开发,简单、高效 安装 安装环境以Windows操作系统为例 Nodejs安装 在Nodejs官网下载 TLS 版本 选择 Windows Binary (...

阅读全文

vscode编译

git clone https://github.com/Microsoft/vscode.git git branch -a git checkout remotes/origin/release/1.7 Failed at the oniguruma@6.1.1 install scri...

阅读全文

欢迎留言