Я уже несколько дней боролся с этим. Ни один из моих поисков не помог установить телефонную трубку до конца. Вот что показывает, когда я пытаюсь установить его:Установка телефона в Windows 7
D:\USERS\haraujo>npm -g install phonegap
npm WARN engine [email protected]: wanted: {"node":"~0.6.7"} (current: {"node":"0
.12.5","npm":"2.11.2"})
|
> [email protected] install D:\USERS\haraujo\AppData\Roaming\npm\node_modules\phoneg
ap\node_modules\cordova
> node bootstrap.js
shell.js: internal error
Error: ENOENT, no such file or directory 'D:\USERS\haraujo\AppData\Roaming\npm\n
ode_modules\phonegap\node_modules\cordova\D:'
at Error (native)
at Object.fs.mkdirSync (fs.js:747:18)
at mkdirSyncRecursive (D:\USERS\haraujo\AppData\Roaming\npm\node_modules\pho
negap\node_modules\cordova\node_modules\shelljs\shell.js:1629:8)
at mkdirSyncRecursive (D:\USERS\haraujo\AppData\Roaming\npm\node_modules\pho
negap\node_modules\cordova\node_modules\shelljs\shell.js:1634:3)
at mkdirSyncRecursive (D:\USERS\haraujo\AppData\Roaming\npm\node_modules\pho
negap\node_modules\cordova\node_modules\shelljs\shell.js:1634:3)
at mkdirSyncRecursive (D:\USERS\haraujo\AppData\Roaming\npm\node_modules\pho
negap\node_modules\cordova\node_modules\shelljs\shell.js:1634:3)
at mkdirSyncRecursive (D:\USERS\haraujo\AppData\Roaming\npm\node_modules\pho
negap\node_modules\cordova\node_modules\shelljs\shell.js:1634:3)
at mkdirSyncRecursive (D:\USERS\haraujo\AppData\Roaming\npm\node_modules\pho
negap\node_modules\cordova\node_modules\shelljs\shell.js:1634:3)
at mkdirSyncRecursive (D:\USERS\haraujo\AppData\Roaming\npm\node_modules\pho
negap\node_modules\cordova\node_modules\shelljs\shell.js:1634:3)
at mkdirSyncRecursive (D:\USERS\haraujo\AppData\Roaming\npm\node_modules\pho
negap\node_modules\cordova\node_modules\shelljs\shell.js:1634:3)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "-g" "install" "phonegap"
npm ERR! node v0.12.5
npm ERR! npm v2.11.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node bootstrap.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node bootstrap.js'.
npm ERR! This is most likely a problem with the cordova package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node bootstrap.js
npm ERR! You can get their info via:
npm ERR! npm owner ls cordova
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\USERS\haraujo\npm-debug.log
Мне нужно установить это, чтобы протестировать гибридную разработку для мобильных устройств.
Update:
мне удалось, с помощью Git, чтобы клонировать PhoneGap-CLI, Cordova-Cli, загрузчик и попытался снова устанавливать без -g флага. Получил следующие сообщения:
D:\USERS\haraujo>npm install phonegap-cli
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "install" "phonegap-cli"
npm ERR! node v0.12.5
npm ERR! npm v2.11.2
npm ERR! code ECONNRESET
npm ERR! network tunneling socket could not be established, cause=Parse Error
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settin
gs.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! Please include the following file with any support request:
npm ERR! D:\USERS\haraujo\npm-debug.log
Добавили ли вы JDK на свой системный путь? – Ibanez
Просто проверено, оно находится на моем системном пути (C: \ Program Files \ Java \ jdk1.7.0_51 \ bin) –