0
我正在設置一個新項目,目標是安裝Grunt和Bower。現在他們都需要安裝最新的npm & Node.js版本。當我安裝它時,我遇到了一些可以修復的git問題。我現在被卡住的地方是,在安裝所有在線指南中列出的所有東西后,顯然npm不存在......?故宮網站提到,這將與Node.js的,並且仍然在安裝後安裝,貌似NPM是不存在....即使在安裝節點後,npm仍未安裝
這裏是我的了:提前
user-mbp:~ username$ git --version
git version 2.1.3.36.g8e36a6d
user-mbp:~ username$ node -v
v0.12.2
user-mbp:~ username$ brew -v
Homebrew 0.9.5
user-mbp:~ username$ sass -v
Sass 3.4.13 (Selective Steve)
user-mbp:~ username$ npm -v
-bash: npm: command not found
謝謝您的幫助。
看起來像OSX?你是如何安裝節點的? – steveax
嘗試安裝nodejs作爲sudo用戶 – Sathish
順便說一句,[這是我的(當前)首選的方式來安裝節點和npm在OSX上](http://stackoverflow.com/questions/28733551/permissions-installing-yeoman-with-npm- eaccess/28734540#28734540) – steveax