2017-02-23 17 views
-4

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.0.0 (node_modules/nodemon/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"})のUbuntu 16.04

npm ERR! Linux 4.4.0-62-generic npm ERR! argv "/usr/bin/nodejs" "/usr/local/bin/npm" "install" "nodemon" "-g" npm ERR! node v4.2.6 npm ERR! npm v4.2.0 npm ERR! path /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! at Error (native) npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules' } npm ERR! npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request: npm ERR! /home/santosh/.npm/_logs/2017-02-23T05_20_16_087Z-debug.log

+0

この問題を解決する方法を教えてください........ –

+0

[クエリを投稿する前にStackoverflowで質問する](http://stackoverflow.com/help/how-to-ask) – Prasad

+0

Stack Overflowは、プログラミングおよび開発に関する質問のサイトです。この質問は、プログラミングや開発に関するものではないので、話題にはならないようです。ヘルプセンターの[ここではどのトピックを参照できますか](http://stackoverflow.com/help/on-topic)を参照してください。おそらく、[スーパーユーザ](http://superuser.com/)や[Unix&Linux Stack Exchange](http://unix.stackexchange.com/)の方が良いかもしれません。また、[Dev Opsについての質問はどこに投稿しますか?](http://meta.stackexchange.com/q/134306) – jww

答えて

2

使用sudo npm install -g express-generator

+0

sudo npm install -g express-generatorこのコマンドを使用した後、同じエラーが表示されます。 。 @ pok8 –

+0

ありがとう@poks_ –

+0

は解決された問題です –

0

でこのコマンドを使用してsudoをとNPMのコマンドを実行してみ "NPM表現発電機を-gインストール"このビデオに記載されている手順に従ってください:https://docs.npmjs.com/all#fixing-npm-permissions