2017-02-04 36 views
0

Error while running: npm install -g angular-cliエラー:npm install -g angular-cli | npm ERR! Windows_NT 10.0.10586

C:\Windows\System32>node -v 
v7.5.0 
C:\Windows\System32>npm -v 
4.1.2 
C:\Users\Chiranjeevi>npm -v minimatch 
4.1.2 
------------------------------------------------------------------------------------------- 
C:\Users\Chiranjeevi>npm install -g angular-cli 

NPMは非推奨[email protected]をWARN:正規表現のDoS問題に
C避けるために3.0.2以降をminimatchにアップデートしてください:\ユーザー\チランジーヴィ\のAppData \ローミング\ NPM ' - (空)
NPMは任意スキッピングOPTIONAL依存性をWARN:[email protected]^1.0.0(node_modules \角度-CLI \ node_modules \ chokidar \ node_modules \ fsevents):
NPMはOPTIONAL依存性をスキップnotsup WARN:のためにサポートされていないプラットフォーム現在の:{"os": "win32"、 "arch": "x64"})
npm WARN @ [email protected]:wanted {"os": "darwin"、 "arch"アングゥlar/[email protected]には[email protected]^5.0.1というピアが必要ですが、何もインストールされていません。
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\プログラムファイル\\ nodejs \\ node.exe" "C:\\プログラムファイル\\ nodejs \\ node_modules \\ npm \\ bin \\ npm-cli.js" "install" "-g ""角速度 "
npm ERR!ノードv7.5.0
npm ERR! npm v4.1.2
npm ERR!パスC:¥Users¥Chiranjeevi¥AppData¥Roaming¥npm¥node_modules¥.staging¥yallist-2cab1649¥package.json.797219503
npm ERR!コードENOENT
npm ERR! errno -4058
npm ERR!システムコールの名前変更
npm ERR! C:\ Users \ Chiranjeevi \ AppData \ Roaming \ npm \ node_modules \ .staging \ yallist-2cab1649 \ package.json.797219503 ' - >「C:\ Users \ Chiranjeevi \ AppData」という名前のファイルまたはディレクトリはありません。 \ Roaming \ npm \ node_modules \ .staging \ yallist-2cab1649 \ package.json '
npm ERR! C:\ Users \ Chiranjeevi \ AppData \ Roaming \ npm \ node_modules \ .staging \ yallist-2cab1649 \ package.json.797219503 ' - >「C:\ Users \ Chiranjeevi \ AppData」という名前のファイルまたはディレクトリはありません。 \ Roaming \ npm \ node_modules \ .staging \ yallist-2cab1649 \ package.json '
npm ERR! enoentこれはおそらくnpm自身の問題ではないでしょう
npm ERR! enoentに関連しており、npmはファイルを見つけることができません。
npm ERR! enoent
npm ERR!サポートリクエストに以下のファイルを含めてください:
npm ERR! C:\ Users \ユーザーチランジーヴィ\ NPM-debug.logに

enter image description here

答えて

0

npm clear cache

を実行するために試してみて、npm install -g angular-cli

2

よりも、あなたはnpm cache clean代わりのnpm clear cacheを(https://docs.npmjs.com/cli/cacheを参照)を実行する必要があります。

についてnpm WARN @angular/[email protected] requires a peer of [email protected]^5.0.1 but none was installed.open angular cli issue concerning rxjsがあります。問題が発生した場合、npm install -g rxjsを実行できます。

さらに、角度cliのnpmパッケージ名がangular-cliから@ angular-cliに変更されました。次は役立つかもしれない、ある

npm uninstall -g angular-cli npm cache clean npm install -g rxjs npm install -g @angular/cli

+0

'NPM -g rxjs'をインストールするには、私 – yunandtidus

+0

NPMのERRのための十分でした! C:\ Users \ Chiranjeevi \ AppData \ Roaming \ npm \ node_modules \ .staging \ css-parse-3e224c20 \ package.json.27297876 - >「C:\ Users \ Chiranjeevi」という名前のファイルまたはディレクトリはありません。 \ AppData \ Roaming \ npm \ node_modules \ .staging \ css-parse-3e224c20 \ packageにあります。json ' – Chiranjeevi

関連する問題