2017-02-23 48 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

已解决问题 –