我已经从NPM安装了Meteorite
npm install -g meteorite
现在我跑
mrt add router
Installing Meteor
branch: https://github.com/meteor/meteor.git#master
Installing smart packages
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: ENOENT, no such file or directory '/Users/myusername/.meteorite/meteors/meteor/meteor/4d98d8cb4e5a95e9e98953f44c872c9332a042a3'
at Object.mkdirSync (fs.js:373:18)
at Object.mkdirSyncRecursive (/usr/lib/node_modules/meteorite/node_modules/wrench/lib/wrench.js:361:12)
at [object Object]._load (/usr/lib/node_modules/meteorite/lib/sources/git.js:125:12)
at /usr/lib/node_modules/meteorite/lib/sources/git.js:73:18
at /usr/lib/node_modules/meteorite/lib/sources/git.js:89:5
at /usr/lib/node_modules/meteorite/lib/sources/git.js:216:5
at ChildProcess.exithandler (child_process.js:281:7)
at ChildProcess.emit (events.js:70:17)
at maybeExit (child_process.js:361:16)
at Socket.<anonymous> (child_process.js:458:7)
有什么想法吗?
答案 0 :(得分:2)
看起来这个问题已经reported before了。在该线程中,this workaround显然已经成功。
答案 1 :(得分:0)
https://github.com/oortcloud/meteorite#installing-meteorite处的安装说明提到sudo -H npm install -g meteorite
是正确的安装命令。
可能现在你的目录结构中有一些root拥有的文件夹(请查看~.npm/
),而mrt
或Meteor没有足够的权限来安装软件包。
有关解释和修复您的情况,请参阅https://github.com/oortcloud/meteorite#permission-woes上的说明。它帮助了我。