2014-01-22 48 views
3

我已經關注http://docs.phonegap.com/en/3.3.0/guide_cli_index.md.html#The%20Command-Line%20Interface在Mac終端上安裝Cordova時出錯

的時候,我在蘋果終端

cordova create hello com.example.hello HelloWorld 

的錯誤是 -

path.js:360 
    throw new TypeError('Arguments to path.join must be strings'); 
     ^
ypeError: Arguments to path.join must be strings 
at path.js:360:15 
at Array.filter (native) 
at Object.exports.join (path.js:358:36) 
at Object.<anonymous> (/usr/local/lib/node_modules/cordova/src/util.js:25:31) 
at Module._compile (module.js:456:26) 
at Object.Module._extensions..js (module.js:474:10) 
at Module.load (module.js:356:32) 
at Function.Module._load (module.js:312:12) 
at Module.require (module.js:364:17) 
at require (module.js:380:17) 

請輸入,如果任何人有關於錯誤的原因以及如何解決的想法。請分享。

在此先感謝。

+0

你見過嗎? http://stackoverflow.com/a/21242582/2567813 –

+0

你檢查。仍是同樣的問題 – ChenSmile

回答

0

是最後得到解決方案。步驟後續

Install latest version of NodeHERE

Open vim .bash_profile in terminal 

Type export PATH=${PATH}: <Android SDK Tools Path> 

Type source .bash_profile in Terminal 

終於跟隨HERE