跳到主要內容

發表文章

目前顯示的是有「nmp」標籤的文章

[教學] nodeJS - npm install on linux and windows

修改紀錄: 2011/10/19  node.exe 經過努力之後,child_process 已經可以支援npm cli.js安裝指令,npm github 網站資料安裝說明也進行同步更新,因此本篇資料經過調整後,簡化linux 部份,增加windows 安裝說明! node.JS 就已經夠麻煩了,還需要什麼nmp,看這三個字就覺得沒有意義, npm (NodeJS package management) ,許多擴充功能都可以藉由此套件快速安裝,例如express, HTTP-connect, template,藉由第三方套件可以大大縮短開發時程。 nodejs 主要程式 安裝完後,其實還有一大區塊,就是直接使用module ,使用現成的模組來開發,以下教學如何安裝npm,主要分為 linux 、 windows 安裝教學說明: PS. 記得 別 使用root權限安裝 Linux npm 安裝 curl http://npmjs.org/install.sh | sh linux npm 安裝完成! windows npm安裝 下載 node.exe  Windows executable ,預設放至於 curl http://npmjs.org/install.sh | sh

[分享] node.exe 利用child_process做些事情

node v0.5.3 版本終於出現了,先看一下原文到底做了哪些更新。 2011.08.01, Version 0.5.3 (unstable) Fix crypto encryption/decryption with Base64. (SAWADA Tadashi) #243 Add an optional length argument to Buffer.write() (koichik) #657 convert nonbuffer data to string in fs.writeFile/Sync (Daniel Pihlström) Add process.features, remove process.useUV (Ben Noordhuis) #324 Fix crypto hmac to accept binary keys + add test cases from rfc 2202 and 4231 (Stefan Bühler) Add Socket::bytesRead, Socket::bytesWritten (Alexander Uvarov) #572 Don’t print result of –eval in CLI (Ben Noordhuis) #1223 Fix http.ClientRequest crashes if end() was called twice (koichik) #1383 Emit ‘close’ after all connections have closed (Felix Geisendörfer) Add sprintf-like util.format() function (Ben Noordhuis) Add support for TLS SNI (Fedor Indutny) New http agent implementation. Off by default the command line flag --use-http2 will enable it. make test-http2 will run the tests for the new implementation. (Mikeal Rogers) Revert AMD compatibili...