Невозможно установить что-либо с npm ECONNRESET без прокси-сервера
Я использовал node.js для установки некоторых вещей через npm без каких-либо проблем. Теперь я ничего не изменил в своих настройках (Win8, никакой прокси-сервер, интернет работает), и я не могу ничего установить (особенно кордова и ионный).
Это только порождает ошибки, как я за прокси, но я не.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "i" "-g" "ionic"
npm ERR! node v0.12.1
npm ERR! npm v2.5.1
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read
npm ERR! network read ECONNRESET
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 settings.
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:\Web\dierechnungstimmt\npm-debug.log
и
npm WARN engine [email protected]: wanted: {"node":"~0.10.x"} (current: {"node":"0.12.1","npm":"2.5.1"})
npm WARN engine [email protected]: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.12.1","npm":"2.5.1"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.1","npm":"2.5.1"})
npm ERR! fetch failed https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.9.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.0.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/gaze/-/gaze-0.5.1.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.1.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/strip-ansi/-/strip-ansi-0.3.0.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/stream-consume/-/stream-consume-0.1.0.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/lodash._reescape/-/lodash._reescape-3.0.0.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/through2/-/through2-0.6.3.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/inflight/-/inflight-1.0.4.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/ansi-regex/-/ansi-regex-0.2.1.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/lodash._basecopy/-/lodash._basecopy-3.0.0.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/clone/-/clone-0.2.0.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.13.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.13.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
C:\Users\Basti\AppData\Roaming\npm\cordova -> C:\Users\Basti\AppData\Roaming\npm\node_modules\cordova\bin\cordova
npm ERR! fetch failed https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.1.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
C:\Users\Basti\AppData\Roaming\npm\ionic -> C:\Users\Basti\AppData\Roaming\npm\node_modules\ionic\bin\ionic
[email protected] C:\Users\Basti\AppData\Roaming\npm\node_modules\i
[email protected] C:\Users\Basti\AppData\Roaming\npm\node_modules\cordova
Ôö£ÔöÇÔöÇ [email protected]
Ôö£ÔöÇÔöÇ [email protected]
Ôö£ÔöÇÔöÇ [email protected] ([email protected])
ÔööÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
[email protected] C:\Users\Basti\AppData\Roaming\npm\node_modules\ionic
Ôö£ÔöÇÔöÇ [email protected]
Ôö£ÔöÇÔöÇ [email protected]
Ôö£ÔöÇÔöÇ [email protected]
Ôö£ÔöÇÔöÇ [email protected]
Ôö£ÔöÇÔöÇ [email protected]
Ôö£ÔöÇÔöÇ [email protected]
Ôö£ÔöÇÔöÇ [email protected]
Ôö£ÔöÇÔöÇ [email protected]
Ôö£ÔöÇÔöÇ [email protected]
Ôö£ÔöÇÔöÇ [email protected]
Ôö£ÔöÇÔöÇ [email protected]
Ôö£ÔöÇÔöÇ [email protected]
Ôö£ÔöÇÔöÇ [email protected] ([email protected])
Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected])
Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected])
Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected])
Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected])
Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected])
Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected])
Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected])
Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected])
Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
Ôö£ÔöÇÔöÇ [email protected]
Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
ÔööÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], orchestrator[email protected], [email protected], [email protected], [email protected])
Кто-нибудь может мне помочь?
EDIT:
Пытался понизить до node 0.10 запустить cmd как администратор, но он все равно не работает:
C:\Users\Basti\Desktop>npm install i -g cordova
npm WARN engine [email protected]: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.10.38","npm":"2.7.4"})
npm WARN installMany normalize-package-data was bundled with [email protected], but bundled package wasn't found in unpacked tree
C:\Program Files (x86)\nodejs\cordova -> C:\Program Files (x86)\nodejs\node_modules\cordova\bin\cordova
[email protected] C:\Program Files (x86)\nodejs\node_modules\i
[email protected] C:\Program Files (x86)\nodejs\node_modules\cordova
Ôö£ÔöÇÔöÇ [email protected]
Ôö£ÔöÇÔöÇ [email protected]
Ôö£ÔöÇÔöÇ [email protected] ([email protected])
ÔööÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
Ответы
Ответ 1
Ну, на самом деле, я хочу дать комментарий к вашему вопросу. Поскольку у меня низкая репутация, это означает, что я не могу дать вам комментарий.
Если у вас возникли проблемы с npm
в Windows. Я предлагаю вам взглянуть на общие ошибки npm
на wiki здесь. Вернитесь к своей проблеме, пожалуйста, убедитесь, что вы используете интернет-соединение вместе с прокси-сервером или нет. Если вы используете его, выполните команду npm config set proxy
. Я нашел ту же проблему на fooobar.com/questions/46717/..., и решение:
использование
npm config set registry http://registry.npmjs.org/
так что npm запрашивает для http
url вместо https
.
а затем попробуйте выполнить ту же команду npm install
.
Не забудьте очистить кеш, выполнив npm cache clean
.
Хотя, этот способ может решить проблему. Вы должны подумать о безопасности. Этот способ не безопасный, потому что это может привести к проблеме безопасности, поскольку https
здесь не используется. Я не рекомендую использовать это на производстве (спасибо @ivarni за указание этого).
Ответ 2
Следующие работали для меня
- Вместо использования cmd используйте команду Node.js commandprompt ". Для этого введите node в меню" Пуск "и по результатам нажмите" Node.js commandprompt". Это установит требуемые переменные env
- В приведенной выше оболочке выполните команду
npm config set registry http://registry.npmjs.org/
- Запустите команду
npm install -g cordova
- Запустите команду
npm install -g ionic
Ответ 3
Если подобная проблема возникла в Windows 10 с Node v5.0.0
Другое решение из здесь, которое работает для меня:
Попробуйте unistall x64 версию Node.js и установите x86 one.
Ответ 4
Лучшее обсуждение проблемы ECONNRESET
содержится в этом реестре реестра npm:
https://github.com/npm/registry/issues/10
tl; dr: Если вы часто это видите, это может быть проблема "слишком много одновременных подключений", которую можно устранить, обновив версию npm до 2.15.x
или 3.x / latest
.
Один комментарий (без комментариев для комментариев) на сообщения Shokatsuryō-san и Sunil: оба рекомендуют изменить свой конфигурационный файл npm для использования http over https. Это может представлять значительный риск для безопасности в производственных средах; не используйте это исправление в этих случаях.
Ответ 5
У меня на самом деле была такая же проблема, с моего рабочего места я мог все наладить, но он не работал из дома.
Я узнал, что пользовательский DNS, настроенный на моем маршруте, был проблемой, я вернулся к интернет-провайдеру по умолчанию, и все работает нормально.
Ответ 6
У меня была аналогичная проблема.
Я был запущен ниже команд
npm config edit
Откройте этот файл и удалите строку не более 8 proxy = http://github.com/ registry = http://registry.npmjs.org/
это пользовательские настройки пользователя, удалите этот файл и сохраните его.
После выполнения команды ниже
npm install должен работать нормально.