我最近安裝的Node.js和OSX NPM模塊,並與設置的問題,我認爲: npm install [MODULE] is not installing the node.js module to the default path
which is /usr/local/lib/node_modules.
我找不出如何添加路徑到我的Node.js安裝(Mac OS X上的v.0.4.7)。我已經安裝了npm,它安裝到全球/usr/local/lib/node_modules。然而,當我安裝了npm時,它並沒有通知Node它選擇放置全局模塊的位置(應該有嗎?)。現在,當我在命令行模式下使用Node時,我不能簡單地使用全局安裝的模塊require()。所以,我想知道是否有某種節點配置文件或環境變量,我可
我想使用NPM在Cygwin的,但不斷收到以下錯誤意外結束: ERR! tar "-mvxpf" "-" "--no-same-owner" "-C" "/tmp/npm-1305893882865/1305893885765-0.008730818051844835/contents/___package.npm" tar: Unexpected EOF in archive
ERR! tar
我試圖安裝node http-proxy下列要求: npm install http-proxy 但我得到這個錯誤: npm ERR! Unsupported
npm ERR! Not compatible with your version of node/npm: [email protected]
npm ERR! Required: {"node":"= 0.4.7"}
npm ER
嘗試使用一個lib,但得到這個錯誤... npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse Note that package.json must be actual JSON, not
npm ERR! JSON.parse just a JavaScript object.
npm ERR