2017-02-23 34 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"})「故宮安裝-g表達發電機」 使用這個命令在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

堆棧溢出是編程和開發問題的網站。這個問題似乎與題目無關,因爲它不涉及編程或開發。請參閱幫助中心的[我可以詢問哪些主題](http://stackoverflow.com/help/on-topic)。也許[超級用戶](http://superuser.com/)或[Unix&Linux堆棧交換](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快速生成器,使用此命令後,我得到同樣的錯誤我發佈了什麼。 @ pok8 –

+0

謝謝@poks_ –

+0

已解決問題 –