2017-11-12 8 views
0
ABC$ sudo npm install -g [email protected] 
npm WARN deprecated [email protected]: angular-cli has been 
renamed to @angular/cli. Please update your dependencies. 
npm WARN deprecated [email protected]: Please update to minimatch 
3.0.2 or higher to avoid a RegExp DoS issue 
/usr/local/bin/ng -> /usr/local/lib/node_modules/angular-cli/bin/ng 

> [email protected] install /usr/local/lib/node_modules/angular- 
cli/node_modules/fsevents 
> node install 

node-pre-gyp ERR! Tried to download(undefined): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v51-darwin-x64.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v51 ABI, unknown) (falling back to source compile with node-gyp) 
gyp ERR! clean error 
gyp ERR! stack Error: EACCES: permission denied, rmdir 'build' 
gyp ERR! System Darwin 16.7.0 
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/angular-cli/node_modules/node-gyp/bin/node-gyp.js" "clean" 
gyp ERR! cwd /usr/local/lib/node_modules/angular-cli/node_modules/fsevents 
gyp ERR! node -v v7.8.0 
gyp ERR! node-gyp -v v3.6.2 
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/angular-cli/node_modules/node-gyp/bin/node-gyp.js clean' (1) 
node-pre-gyp ERR! stack  at ChildProcess.<anonymous> (/usr/local/lib/node_modules/angular-cli/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29) 
node-pre-gyp ERR! stack  at emitTwo (events.js:106:13) 
node-pre-gyp ERR! stack  at ChildProcess.emit (events.js:194:7) 
node-pre-gyp ERR! stack  at maybeClose (internal/child_process.js:899:16) 
node-pre-gyp ERR! stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 
node-pre-gyp ERR! System Darwin 16.7.0 
node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/angular-cli/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build" 
node-pre-gyp ERR! cwd /usr/local/lib/node_modules/angular-cli/node_modules/fsevents 
node-pre-gyp ERR! node -v v7.8.0 
node-pre-gyp ERR! node-pre-gyp -v v0.6.39 
node-pre-gyp ERR! not ok 

は `/ usr/local/binに/ノード/usr/local/lib/node_modules/angular-cli/node_modules/node-gyp/bin/node-gyp.jsの実行に失敗しましたクリーン '(1)角度-cliを更新するには、エラーにスロー

[email protected] install /usr/local/lib/node_modules/angular-cli/node_modules/node-sass node scripts/install.js

Unable to save binary /usr/local/lib/node_modules/angular-cli/node_modules/node-sass/vendor/darwin-x64-51 : { Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/angular-cli/node_modules/node-sass/vendor' 
at Object.fs.mkdirSync (fs.js:895:18) 
at sync (/usr/local/lib/node_modules/angular-cli/node_modules/mkdirp/index.js:71:13) 
at Function.sync (/usr/local/lib/node_modules/angular-cli/node_modules/mkdirp/index.js:77:24) 
at checkAndDownloadBinary (/usr/local/lib/node_modules/angular-cli/node_modules/node-sass/scripts/install.js:111:11) 
at Object.<anonymous> (/usr/local/lib/node_modules/angular-cli/node_modules/node-sass/scripts/install.js:154:1) 
at Module._compile (module.js:571:32) 
at Object.Module._extensions..js (module.js:580:10) 
at Module.load (module.js:488:32) 
at tryModuleLoad (module.js:447:12) 
at Function.Module._load (module.js:439:3) 

はerrno:-13、 コード: 'EACCES' システムコール 'MKDIR' パス:' は/ usr/local/lib/node_modules /角度-CLI/node_modules/node-sass/vendor '}

[email protected] postinstall /usr/local/lib/node_modules/angular-cli/node_modules/node-sass node scripts/build.js

Building: /usr/local/bin/node /usr/local/lib/node_modules/angular-cli/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= 
gyp info it worked if it ends with ok 
gyp verb cli [ '/usr/local/bin/node', 
gyp verb cli '/usr/local/lib/node_modules/angular-cli/node_modules/node-gyp/bin/node-gyp.js', 
gyp verb cli 'rebuild', 
gyp verb cli '--verbose', 
gyp verb cli '--libsass_ext=', 
gyp verb cli '--libsass_cflags=', 
gyp verb cli '--libsass_ldflags=', 
gyp verb cli '--libsass_library=' ] 
gyp info using [email protected] 
gyp info using [email protected] | darwin | x64 
gyp verb command rebuild [] 
gyp verb command clean [] 
gyp verb clean removing "build" directory 
gyp verb command configure [] 
gyp verb check python checking for Python executable "python2" in the PATH 
gyp verb `which` failed Error: not found: python2 
gyp verb `which` failed  at getNotFoundError (/usr/local/lib/node_modules/angular-cli/node_modules/which/which.js:13:12) 
gyp verb `which` failed  at F (/usr/local/lib/node_modules/angular-cli/node_modules/which/which.js:68:19) 
gyp verb `which` failed  at E (/usr/local/lib/node_modules/angular-cli/node_modules/which/which.js:80:29) 
gyp verb `which` failed  at /usr/local/lib/node_modules/angular-cli/node_modules/which/which.js:89:16 
gyp verb `which` failed  at /usr/local/lib/node_modules/angular-cli/node_modules/isexe/index.js:42:5 
gyp verb `which` failed  at /usr/local/lib/node_modules/angular-cli/node_modules/isexe/mode.js:8:5 
gyp verb `which` failed  at FSReqWrap.oncomplete (fs.js:114:15) 
gyp verb `which` failed python2 { Error: not found: python2 
gyp verb `which` failed  at getNotFoundError (/usr/local/lib/node_modules/angular-cli/node_modules/which/which.js:13:12) 
gyp verb `which` failed  at F (/usr/local/lib/node_modules/angular-cli/node_modules/which/which.js:68:19) 
gyp verb `which` failed  at E (/usr/local/lib/node_modules/angular-cli/node_modules/which/which.js:80:29) 
gyp verb `which` failed  at /usr/local/lib/node_modules/angular-cli/node_modules/which/which.js:89:16 
gyp verb `which` failed  at /usr/local/lib/node_modules/angular-cli/node_modules/isexe/index.js:42:5 
gyp verb `which` failed  at /usr/local/lib/node_modules/angular-cli/node_modules/isexe/mode.js:8:5 
gyp verb `which` failed  at FSReqWrap.oncomplete (fs.js:114:15) 
gyp verb `which` failed stack: 'Error: not found: python2\n at 

getNotFoundError(Fで/usr/local/lib/node_modules/angular-cli/node_modules/which/which.js:13:12)\n(は/ usr/local/lib/node_modules/angular- /usr/local/lib/node_modules/angular-cli/node_modules/which/which.js:80:29)\nで/ usr/local/modules/which/which.js:68: local/lib/node_modules/angular-cli/node_modules/which/which.js:89:16 \ n /usr/local/lib/node_modules/angular-cli/node_modules/isexe/index.js:42:5\nにあります。 at /usr/local/lib/node_modules/angular-cli/node_modules/isexe/mode.js:8:5n on FSReqWrap.oncomplete(fs.js:114:15) '、 gyp動詞which失敗したコード: ENOENT '} gyp動詞チェックPythonがPython実行ファイル "python"を確認しています gyp動詞whichが成功しましたpython/usr/bin/python gyp動詞チェックpythonバージョン/usr/bin/python -c "import platform; print(platform.python_version());" "2.7.10 \ n" gyp動詞get node dir no - ターゲットバージョンが指定され、ホストノードに戻るバージョン:7.8.0 gyp動詞コマンドインストール['7.8.0'] gyp動詞インストール入力バージョン文字列 "7.8.0" gyp動詞インストールインストールバージョン:7.8.0 gyp動詞インストール - 既にインストールされていれば再インストールされません gyp動詞のインストールバージョンが既にインストールされているので、 "installVersion"を確認する必要があります gyp動詞が "installVersion"になっています9 gyp動詞に "installVersion"が必要9 gyp動詞インストールバージョンがgood gyp動詞取得ノードdirターゲットノードバージョンがインストール済み:7.8.0 gyp動詞ビルドディレクトリ "build"ディレクトリを作成しようとしています:/ usr/local/lib/node_modules/angel-cli/node_modules/node-sass/build gyp ERR!エラーを構成してください gyp ERR!スタックエラー:EACCES:パーミッションが拒否されました、mkdir '/ usr/local/lib/node_modules/angel-cli/node_modules/node-sass/build' gyp ERR!システムダーウィン16.7.0 gyp ERR!コマンド "/ usr/local/bin/node" "/usr/local/lib/node_modules/angular-cli/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" " - libsass_ext = "" --libsass_cflags = "" --libsass_ldflags = "" --libsass_library = " gyp ERR! cwd/usr/local/lib/node_modules/angular-cli/node_modules/node-sass gyp ERR!ノード-v v7.8.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok ビルドに失敗しました。エラーコード:1 npm WARN @ angular/core @ 2.4.10には[email protected]^5.0.1のピアが必要ですが、何もインストールされていません。自分でピア依存関係をインストールする必要があります。 NPMは任意スキッピングOPTIONAL依存性をWARN:(node_modules /角度-CLI/node_modules/fsevents)[email protected]: NPMは任意スキッピングOPTIONAL依存性をWARN:[email protected]インストール:終了:node install NPMは任意スキッピングOPTIONAL依存性をWARNステータス1

npm ERR!コードELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] postinstall:node scripts/build.js npm ERR!終了ステータス1 npm ERR! npm ERR![email protected] postinstallスクリプトで失敗しました。 npm ERR!これはnpmの問題ではないでしょう。上記のログ出力が追加される可能性があります。

npm ERR!この実行の完全なログは、 npm ERR! /Users/ABC/.npm/_logs/2017-11-12T09_23_09_328Z-debug.log

+0

あなたがインストールする前にアンインストールしましたか? – Baruch

+0

はい。私はそれが理想的な方法だと思ったように。 – Samir

+0

ここであなたのエラーは 'npm WARN [email protected]β2.8.3:angular-cliは@ angular/cliに名前変更されました。 ' – Baruch

答えて

-1

誤ったバージョンのcliをインストールしています。

npm WARN deprecated [email protected]: angular-cli has been renamed to @angular/cli.

あなたは代わりにこれを行う必要があります。

npm uninstall -global angular-cli @angular/cli 
npm install -global @angular/cli 
+0

グローバルからアンインストールする際にこのエラーが発生します。 - npm ERR!パス/ usr/local/bin/ng npm ERR!コードEEXIST npm ERR!/usr/local/bin/ngの削除を拒否する:../lib/node_modules/angular-cli/bin/ngシンボリックリンクのターゲットはnpm/usr/local/lib/node_modules/@ angular/cliによって制御されません npm ERR!ファイルが存在する:/ usr/local/bin/ng npm ERR!それを遠ざけて、もう一度やり直してください。 – Samir

+1

@サミールさて、それを遠ざけて、もう一度やり直してください。 –

関連する問題