2017-10-30 2 views
0

npm installieren stürzt auf:keine Installation @ Winkel/cli richtig

sudo npm installieren -g @ Winkel/cli

ich tryied es mehrmals mit Bargeld zu deinstallieren, sauber und dann installiere es wieder mit @ angular/cli und es stürzt immer ab.

[email protected]:~$ sudo npm install -g @angular/cli 
npm WARN registry Using stale data from https://registry.npmjs.org/ because the host is inaccessible -- are you offline? 
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation. 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/bn.js-a9de3ac3/lib/bn.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/async-test.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/webpack-dev-server-4b3dbb2d/bin/webpack-dev-server.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/webapis-media-query.min.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/webapis-notification.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/webapis-notification.min.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ajv-keywords-e7de9002/keywords/dotjs/README.md' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/webapis-rtc-peer-connection.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ajv-keywords-e7de9002/keywords/dotjs/_formatLimit.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/webapis-media-query.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ajv-keywords-e7de9002/keywords/dotjs/patternRequired.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/webapis-shadydom.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging//src/serializers/dts.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/ajv-keywords-e7de9002/keywords/dotjs/switch.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/webapis-shadydom.min.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging//src/serializers/json.js' 
npm WARN tar ENOENT: no such file or directory, lstat '/usr/local/lib/node_modules/.staging/ajv-keywords-e7de9002/keywords/dot' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/wtf.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging//src/serializers/dts.d.ts' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/wtf.min.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging//src/serializers/dts.js.map' 
npm WARN tar ENOENT: no such file or directory, lstat '/usr/local/lib/node_modules/.staging/ajv-keywords-e7de9002/keywords/dot' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/zone-bluebird.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging//src/serializers/json.d.ts' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/task-tracking.min.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging//src/serializers/json.js.map' 
npm WARN tar ENOENT: no such file or directory, lstat '/usr/local/lib/node_modules/.staging/ajv-keywords-e7de9002/keywords/dot' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/zone-bluebird.min.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/task-tracking.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/zone-error.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/sync-test.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/bluebird-57ade097/js/browser/bluebird.min.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/zone-error.min.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/proxy.min.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/zone.js-071eb577/dist/zone-mix.js' 
npm WARN tar ENOENT: no such file or directory, open '/usr/local/lib/node_modules/.staging/caniuse-db-e3ba940e/.editorconfig' 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules//node_modules/node-sass): 
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: Cannot cd into '/usr/local/lib/node_modules/.staging/node-sass-d131eca4' 

npm ERR! code ENOTFOUND 
npm ERR! errno ENOTFOUND 
npm ERR! network request to https://registry.npmjs.org/url-loader/-/url-loader-0.6.2.tgz failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443 
npm ERR! network This is a problem 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! A complete log of this run can be found in: 
npm ERR! /home/dmitri/.npm/_logs/2017-10-30T12_53_53_219Z-debug.log 
supporting information: 
+0

https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md – cartant

Antwort

0

löschen Ihre node_modules Dir vollständig, dann führen Sie diese erneut sudo npm install

Dann können Sie dies versuchen, wenn es sein muss:

Um @ Winkel/cli zu installieren lokal npm install @angular/cli --save laufen, während es global npm install -g @angular/cli laufen zu installieren.

Aber wenn es einen Root-Zugang erfordert, dann müssen Sie die sudo, die dann sudo npm install -g @angular/cli sein wird.

Oder überprüfen Sie Ihre Netzwerkverbindung (Internet), wie es der Fall sein könnte.

Ich hoffe, das hilft

+0

I @ Winkel/cli installiert werden soll (nicht eckig-cli). –

+0

@ Dmitri.R überprüfen Sie die bearbeitete Antwort. – antzshrek

+0

danke ich löse dieses Problem bereits. Es war seltsam, ein Netzwerkproblem. auf anderen WiFi Es war einfach so wie es sein muss. Danke –

Verwandte Themen