前言:由於Node.js使用VS2010當成C++編譯器,所以建議要安裝VS2010,網路上有人使用如下命令,強迫使用VS2012編譯器
1. 將整個編譯環境強制設成VS2012
$ npm config set msvs_version 2012 --global
2. 安裝時設定編譯器是2012
$ npm install socket.io --msvs_version=2012
node.js 核心基礎課程
Node.js官網
---- 下載 & 執行 Node.js 安裝檔
---- 安裝Brackets
brackets官網 , 下載並安裝
---- 使用Theseus
---- run Brackets (File -- Extension Manager)
---- Available -- type "Theseus" in search box
---- Click the "install"
---- also run "npm install -g node-theseus" to get the command-line helper
---- 安裝Node Inspector
$ npm install -g node-inspector
---- 安裝Node debug:
$ npm install -g node-debug
---- 示例:
$ node-theseus app.js
沒有留言:
張貼留言