2016-10-20 12 views
1

私はubuntu 16.04にangular-cliをインストールするのに何回も試みましたが、毎回失敗しました。私はノードバージョン6.9.1とnpmバージョン3.10.8を使用しています。この記事では、ここでエラーを取り上げています。angular-cliはubtunuにインストールされていません16.04

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.0.0 (node_modules/angular-cli/node_modules/chokidar/node_modules/fsevents): 
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) 
    npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed. 
    npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed. 
    npm WARN @angular/[email protected] requires a peer of @angular/[email protected] but none was installed. 
    npm ERR! Linux 4.4.0-42-generic 
    npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "[email protected]" 
    npm ERR! node v6.9.1 
    npm ERR! npm v3.10.8 
    npm ERR! path /usr/local/lib/node_modules/.staging/abbrev-e9ea1451 
    npm ERR! code ENOENT 
    npm ERR! errno -2 
    npm ERR! syscall rename 

    npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/abbrev-e9ea1451' -> '/usr/local/lib/node_modules/angular-cli/node_modules/npm/node_modules/abbrev' 
    npm ERR! enoent ENOENT: no such file or directory, rename '/usr/local/lib/node_modules/.staging/abbrev-e9ea1451' -> '/usr/local/lib/node_modules/angular-cli/node_modules/npm/node_modules/abbrev' 
    npm ERR! enoent This is most likely not a problem with npm itself 
    npm ERR! enoent and is related to npm not being able to find a file. 
    npm ERR! enoent 

    npm ERR! Please include the following file with any support request: 
    npm ERR!  /home/pc/Downloads/node-v6.9.1/npm-debug.log 
    npm ERR! code 1 

誰でも修正がありますか?

答えて

2

https://github.com/angular/angular-cli/issues/1190

sudo npm uninstall -g angular-cli 
sudo npm install-g angular-cli 
+1

感謝の男を実行してみてください。ここでもうまくいきます。それは最初の時間のために働いていなかった方法と2番目の時間のためにそれはできますか。しかし、新しい問題が発生しました。新しいアプリケーション名**を入力すると、このエラーが表示されます_定義されていないプロパティ 'AssetUrl'を読み取れません。 – habibalsaki

+1

アプリが実際に作成されるのですか、このエラーでコマンドが停止しますか? – nicovank

+1

私はそれを修正しました。新しいapp_name_の前に** sudo **を使用する必要があります。あなたにニコovankありがとう。 – habibalsaki

関連する問題