运行meteor app时出现NPM包问题

时间:2014-08-05 01:09:25

标签: node.js meteor npm meteorite

现在,我正试图让Telescope在我的Mac上本地运行。我完成了所有步骤,但一旦输入

meteor

在终端,这就是我得到的:

=> Started proxy.
=> Started MongoDB.     
fast-render: updating npm dependencies -- connect...
npm ERR! Error: EACCES, open '/Users/Justin/.npm/inherits/2.0.1/package/package.json'
npm ERR!  { [Error: EACCES, open '/Users/Justin/.npm/inherits/2.0.1/package/package.json']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/Users/Justin/.npm/inherits/2.0.1/package/package.json',
npm ERR!   parent: 'readable-stream' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Darwin 13.3.0
npm ERR! command "/Users/Justin/.meteor/tools/cef2bcd356/bin/node" "/Users/Justin/.meteor/tools/cef2bcd356/bin/npm" "install" "connect@2.13.0"
npm ERR! cwd /Users/Justin/.meteorite/packages/fast-render/arunoda/meteor-fast-render/149984b1aff3a5642a270aff9bd9006872c8302e/.npm/package-new-26ztfl
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /Users/Justin/.npm/inherits/2.0.1/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/Users/Justin/.npm/inherits/2.0.1/package/package.json'
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/Justin/.meteorite/packages/fast-render/arunoda/meteor-fast-render/149984b1aff3a5642a270aff9bd9006872c8302e/.npm/package-new-26ztfl/npm-debug.log
npm ERR! not ok code 0

=> Errors prevented startup:

While building package `fast-render`:
error: couldn't install npm package

While building package `telescope-tags`:
error: no such package: 'iron-router'

While building package `telescope-search`:
error: no such package: 'iron-router'

任何帮助都会很棒。感谢。

1 个答案:

答案 0 :(得分:0)

这对我有用:https://github.com/meteor/meteor/issues/893

来自帖子:

“查看我的.meteor / local目录,我看到.meteor / local / build由root而不是普通用户拥有。从.meteor / local内运行sudo rm -r build修复了问题。”