2016-09-21 4 views
1

私はこれらの依存関係をインストールしようとしたので、Angleのクイックスタートでnpm開始の問題を修正しようとしています。残念ながら、私はこれらのエラーメッセージに遭遇している:私はちょうど初心者ですので、これは何を意味するのか分からないエラーnpm同時にLDAPサーバのタイプスクリプト

$ sudo npm install -g concurrently lite-server typescript 
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130 
npm ERR! Darwin 15.6.0 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "concurrently" "lite-server" "typescript" 
npm ERR! node v6.6.0 
npm ERR! npm v3.10.8 

npm ERR! uid must be an unsigned int 
npm ERR! 
npm ERR! If you need help, you may report this error at: 
npm ERR!  <https://github.com/npm/npm/issues> 
npm ERR! Darwin 15.6.0 
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "concurrently" "lite-server" "typescript" 
npm ERR! node v6.6.0 
npm ERR! npm v3.10.8 

[14 - 16 of this repeatedly appears] 

npm ERR! uid must be an unsigned int 
npm ERR! 
npm ERR! If you need help, you may report this error at: 
npm ERR!  <https://github.com/npm/npm/issues> 

npm ERR! Please include the following file with any support request: 
npm ERR!  /Users/username/npm-debug.log 

答えて

0

あなたはNode.jsのパッケージに node.js

を再インストールする必要がそれは私のために問題を解決し

0

この問題を解決する方法はいくつかあります。権限と関係があります。以下上場 は、両方のソリューションの概要です:

溶液A:

(1)/ユーザー// NPM-グローバル

として// /ユーザーの下NPM-グローバルディレクトリを作成します(2)NPM設定セットの接頭辞/ユーザー// NPM-グローバル

は(3)輸出PATH = /ユーザー// NPM-グローバル/ binに追加します。〜/ .profileに

への$ PATHを(4)のソース〜/ .profileに

(1)のsudoをchown:(5)あなたが手順を行うにはしたくない場合は(3)&(4)〜/ .bash_profileの

または

溶液Bに輸出コメントを追加-R $ USER/usr/local/

詳細については、https://docs.npmjs.com/getting-started/fixing-npm-permissionsのリンクをクリックしてください。

関連する問題