【发布时间】:2015-09-19 23:02:02
【问题描述】:
您好,我正在尝试安装 Node Express 框架。但它引发以下错误
rajdeep@rajdeep-Lenovo-G50-80:/var/www/mynode$ npm install -g express-generator
npm WARN locking Error: EACCES, open '/home/rajdeep/.npm/_locks/express-generator-981ece2c3651799f.lock'
npm WARN locking at Error (native)
npm WARN locking /home/rajdeep/.npm/_locks/express-generator-981ece2c3651799f.lock failed { [Error: EACCES, open '/home/rajdeep/.npm/_locks/express-generator-981ece2c3651799f.lock']
npm WARN locking errno: -13,
npm WARN locking code: 'EACCES',
npm WARN locking path: '/home/rajdeep/.npm/_locks/express-generator-981ece2c3651799f.lock' }
npm ERR! Linux 3.16.0-30-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "express-generator"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! Attempt to unlock /usr/lib/node_modules/express-generator, which hasn't been locked
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! /var/www/mynode/npm-debug.log
【问题讨论】:
标签: javascript node.js express