首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装和运行望远镜/流星时出错

安装和运行望远镜/流星时出错
EN

Stack Overflow用户
提问于 2014-08-15 18:46:35
回答 3查看 2.2K关注 0票数 2

我试过所有在太阳下的东西让望远镜运行,使用这些使用说明

当我运行meteor时,会得到以下错误

代码语言:javascript
复制
[[[[[ ~/Telescope ]]]]]

=> Started proxy.
=> Started MongoDB.     
=> Errors prevented startup:

While building the application:
node_modules/meteorite/node_modules/prompt/node_modules/winston/node_modules/pkginfo/docs/pkginfo.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/ddp/node_modules/meteor-ejson/node_modules/underscore/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/ddp/node_modules/node-srp/node_modules/underscore/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/ddp/node_modules/faye-websocket/examples/sse.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/ddp/node_modules/faye-websocket/examples/ws.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/prompt/node_modules/pkginfo/docs/pkginfo.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/prompt/docs/prompt.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/colors/example.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/underscore/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/prompt/node_modules/utile/node_modules/mkdirp/bin/cmd.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/prompt/node_modules/utile/node_modules/rimraf/bin.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/fstream/node_modules/mkdirp/bin/cmd.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/fstream/node_modules/rimraf/bin.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/test/_/argv.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/test/_/bin.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/bool.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/boolean_double.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/boolean_single.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/default_hash.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/default_singles.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/divide.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/line_count.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/line_count_options.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/line_count_wrap.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/nonopt.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/reflect.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/short.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/string.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/xup.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/bin/mrt.js:1:15: Unexpected token ILLEGAL

=> Your application has errors. Waiting for file change.

另一个论坛建议运行mrt,这会产生相同的错误,因此我运行了sudo mrt,它的开头更有希望,但最后仍然提供了一个错误:

代码语言:javascript
复制
Stand back while Meteorite does its thing
✓ momentjs
    tag: https://github.com/crapthings/meteor-momentjs.git#v2.1.0.2
✓ crypto-base
    tag: https://github.com/oortcloud/meteor-crypto-base.git#v3.1.2.1
✓ crypto-md5
    tag: https://github.com/oortcloud/meteor-crypto-md5.git#v3.1.2.2
✓ iron-router
    tag: https://github.com/EventedMind/iron-router.git#v0.8.2
✓ fast-render
    tag: https://github.com/arunoda/meteor-fast-render.git#v1.0.0
✓ spin
    tag: https://github.com/SachaG/meteor-spin.git#v2.0.4
✓ autoform
    tag: https://github.com/aldeed/meteor-autoform.git#v0.16.1
✓ jquery-hotkeys
    tag: https://github.com/terryschen/meteor-jquery-hotkeys.git#v0.0.1
✓ marked
    tag: https://github.com/chuangbo/meteor-marked.git#v0.3.3
✓ bootstrap3-datepicker
    tag: https://github.com/rajit/bootstrap3-datepicker.git#v0.2.1
✓ subs-manager
    tag: https://github.com/meteorhacks/subs-manager.git#v1.0.2
✓ telescope-module-embedly
    tag: https://github.com/TelescopeJS/telescope-module-embedly.git#v0.2.6
✓ handlebars-server
    tag: https://github.com/EventedMind/meteor-handlebars-server.git#v1.2.0
✓ npm
    tag: https://github.com/arunoda/meteor-npm.git#v0.2.6
✓ mailchimp
    tag: https://github.com/MiroHibler/meteor-mailchimp.git#v0.4.2
✓ synced-cron
    tag: https://github.com/percolatestudio/meteor-synced-cron.git#v0.1.1
✓ cookies
    tag: https://github.com/subhog/meteor-cookies.git#v0.3.0
✓ telescope-newsletter
    tag: https://github.com/TelescopeJS/telescope-newsletter.git#v0.1.8
✓ accounts-entry
    tag: https://github.com/Differential/accounts-entry.git#v0.8.0
✓ iron-layout
    tag: https://github.com/EventedMind/iron-layout.git#v0.2.0
✓ simple-schema
    tag: https://github.com/aldeed/meteor-simple-schema.git#v0.7.0
✓ collection2
    tag: https://github.com/aldeed/meteor-collection2.git#v0.4.6
✓ moment
    tag: https://github.com/acreeger/meteor-moment.git#v2.6.0
✓ accounts-t9n
    tag: https://github.com/softwarerero/meteor-accounts-t9n.git#v0.0.5
✓ simple-form
    tag: https://github.com/Differential/simple-form.git#v0.1.8
✓ blaze-layout
    tag: https://github.com/EventedMind/blaze-layout.git#v0.2.5
✓ iron-core
    tag: https://github.com/EventedMind/iron-core.git#v0.2.0
✓ iron-dynamic-template
    tag: https://github.com/EventedMind/iron-dynamic-template.git#v0.2.1
✓ underscore-string-latest
    tag: https://github.com/TimHeckel/meteor-underscore-string.git#v2.3.3

Done installing smart packages

Ok, everything's ready. Here comes Meteor!

[[[[[ /home/me/Telescope ]]]]]

=> Started proxy.
=> Started MongoDB.     
iron-router: updating npm dependencies -- connect...
fast-render: updating npm dependencies -- connect...
spin: updating npm dependencies -- spin.js...
simple-schema: updating npm dependencies -- string...
handlebars-server: updating npm dependencies -- handlebars...
npm: updating npm dependencies -- juice, html-to-text...
sh: 1: node-gyp: Permission denied
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v/node_modules/juice/node_modules/jsdom/node_modules/cssstyle/lib/properties'
npm ERR! error rolling back  jsdom@0.6.5 { [Error: ENOTEMPTY, rmdir '/root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v/node_modules/juice/node_modules/jsdom/node_modules/cssstyle/lib/properties']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v/node_modules/juice/node_modules/jsdom/node_modules/cssstyle/lib/properties' }
npm ERR! Error: ENOENT, lstat '/root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v/node_modules/juice/node_modules/jsdom/node_modules/request/node_modules/hawk/Makefile'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.2.0-4-amd64
npm ERR! command "/root/.meteor/tools/cef2bcd356/bin/node" "/root/.meteor/tools/cef2bcd356/bin/npm" "install" "juice@0.4.0"
npm ERR! cwd /root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v/node_modules/juice/node_modules/jsdom/node_modules/request/node_modules/hawk/Makefile
npm ERR! fstream_path /root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v/node_modules/juice/node_modules/jsdom/node_modules/request/node_modules/hawk/Makefile
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /root/.meteor/tools/cef2bcd356/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v/node_modules/juice/node_modules/jsdom/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_writable.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.2.0-4-amd64
npm ERR! command "/root/.meteor/tools/cef2bcd356/bin/node" "/root/.meteor/tools/cef2bcd356/bin/npm" "install" "juice@0.4.0"
npm ERR! cwd /root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v/node_modules/juice/node_modules/jsdom/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_writable.js
npm ERR! fstream_path /root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v/node_modules/juice/node_modules/jsdom/node_modules/htmlparser2/node_modules/readable-stream/lib/_stream_writable.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /root/.meteor/tools/cef2bcd356/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v/node_modules/juice/node_modules/jsdom/node_modules/request/node_modules/tough-cookie/lib/cookie.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.2.0-4-amd64
npm ERR! command "/root/.meteor/tools/cef2bcd356/bin/node" "/root/.meteor/tools/cef2bcd356/bin/npm" "install" "juice@0.4.0"
npm ERR! cwd /root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v/node_modules/juice/node_modules/jsdom/node_modules/request/node_modules/tough-cookie/lib/cookie.js
npm ERR! fstream_path /root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v/node_modules/juice/node_modules/jsdom/node_modules/request/node_modules/tough-cookie/lib/cookie.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /root/.meteor/tools/cef2bcd356/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v/node_modules/juice/node_modules/jsdom/node_modules/cssstyle/lib/properties'
npm ERR! error rolling back  juice@0.4.0 { [Error: ENOTEMPTY, rmdir '/root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v/node_modules/juice/node_modules/jsdom/node_modules/cssstyle/lib/properties']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v/node_modules/juice/node_modules/jsdom/node_modules/cssstyle/lib/properties' }
npm ERR! contextify@0.1.8 install: `node-gyp rebuild`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the contextify@0.1.8 install script.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls contextify
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.2.0-4-amd64
npm ERR! command "/root/.meteor/tools/cef2bcd356/bin/node" "/root/.meteor/tools/cef2bcd356/bin/npm" "install" "juice@0.4.0"
npm ERR! cwd /root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /root/.meteorite/packages/npm/arunoda/meteor-npm/177ab6118de5bf8cffb19481343d5762ff7a2aaf/.npm/package-new-15pys5v/npm-debug.log
npm ERR! not ok code 0

mailchimp: updating npm dependencies -- mailchimp...
synced-cron: updating npm dependencies -- later...
telescope-newsletter: updating npm dependencies -- later...
=> Errors prevented startup:

While building the application:
node_modules/meteorite/node_modules/prompt/node_modules/winston/node_modules/pkginfo/docs/pkginfo.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/ddp/node_modules/meteor-ejson/node_modules/underscore/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/ddp/node_modules/node-srp/node_modules/underscore/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/ddp/node_modules/faye-websocket/examples/sse.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/ddp/node_modules/faye-websocket/examples/ws.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/prompt/node_modules/pkginfo/docs/pkginfo.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/prompt/docs/prompt.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/colors/example.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/underscore/index.html:1: Can't set DOCTYPE here.  (Meteor sets <!DOCTYPE html> for you)
node_modules/meteorite/node_modules/prompt/node_modules/utile/node_modules/mkdirp/bin/cmd.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/prompt/node_modules/utile/node_modules/rimraf/bin.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/fstream/node_modules/mkdirp/bin/cmd.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/fstream/node_modules/rimraf/bin.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/test/_/argv.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/test/_/bin.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/bool.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/boolean_double.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/boolean_single.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/default_hash.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/default_singles.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/divide.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/line_count.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/line_count_options.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/line_count_wrap.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/nonopt.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/reflect.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/short.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/string.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/node_modules/optimist/example/xup.js:1:15: Unexpected token ILLEGAL
node_modules/meteorite/bin/mrt.js:1:15: Unexpected token ILLEGAL

While building package `npm`:
error: couldn't install npm package

=> Your application has errors. Waiting for file change.

问题是,当我试图安装NPM时,它不允许我在不使用sudo的情况下这么做,所以我做了sudo -H npm install -g meteorite,虽然我第一次忽略了-H,所以我试着擦干净,重新开始:

代码语言:javascript
复制
sudo mrt uninstall
sudo mrt uninstall --system
rm -rf ~/.meteorite

sudo rm /usr/local/bin/meteor
rm -rf ~/.meteor

现在我仍然用cd进入望远镜并点击mrt,但是得到了这样的错误:

代码语言:javascript
复制
[[[[[ ~/Telescope ]]]]]

=> Started proxy.
=> Started MongoDB.     
iron-router: updating npm dependencies -- connect...
fast-render: updating npm dependencies -- connect...
spin: updating npm dependencies -- spin.js...
simple-schema: updating npm dependencies -- string...
handlebars-server: updating npm dependencies -- handlebars...
npm: updating npm dependencies -- juice, html-to-text...
mailchimp: updating npm dependencies -- mailchimp...
synced-cron: updating npm dependencies -- later...
telescope-newsletter: updating npm dependencies -- later...

/home/me/.meteor/tools/cef2bcd356/lib/node_modules/fibers/future.js:173
                        throw(ex);
                              ^
Error: EACCES, permission denied '/home/me/Telescope/.meteor/local/build-garbage-xd2tqb/README'
  at Object.fs.unlinkSync (fs.js:765:18)
  at Object.files.rm_recursive (/home/me/.meteor/tools/cef2bcd356/tools/files.js:219:8)
  at /home/me/.meteor/tools/cef2bcd356/tools/files.js:215:13
  at Array.forEach (native)
  at Function._.each._.forEach (/home/me/.meteor/tools/cef2bcd356/lib/node_modules/underscore/underscore.js:79:11)
  at Object.files.rm_recursive (/home/me/.meteor/tools/cef2bcd356/tools/files.js:213:7)
  at Object.files.renameDirAlmostAtomically (/home/me/.meteor/tools/cef2bcd356/tools/files.js:456:11)
  at [object Object]._.extend.complete (/home/me/.meteor/tools/cef2bcd356/tools/builder.js:438:11)
  at writeSiteArchive (/home/me/.meteor/tools/cef2bcd356/tools/bundler.js:1580:13)
  at /home/me/.meteor/tools/cef2bcd356/tools/bundler.js:1897:18
  at Object.capture (/home/me/.meteor/tools/cef2bcd356/tools/buildmessage.js:191:5)
  at Object.exports.bundle (/home/me/.meteor/tools/cef2bcd356/tools/bundler.js:1667:31)
  at [object Object]._.extend._runOnce (/home/me/.meteor/tools/cef2bcd356/tools/run-app.js:406:32)
  at [object Object]._.extend._fiber (/home/me/.meteor/tools/cef2bcd356/tools/run-app.js:540:28)
  at /home/me/.meteor/tools/cef2bcd356/tools/run-app.js:348:12


/usr/lib/node_modules/meteorite/lib/command.js:41
            throw "Command exited with " + code + "/" + signal;
                                                      ^
Command exited with 8/

我真的需要让这个工作,谁能帮我吗?(谢谢!)

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2014-08-15 22:30:35

看起来,您以根用户的身份运行了一个不应该拥有的命令,并将您的文件权限搞砸了一点。您可以在家中安全地清除这些问题,包括:

sudo chown -R me /home/me

(假设您的非根用户名是"me",如您的错误中所示)

这将递归地将"me“设置为/home/me/中每个文件的所有者。您也可以通过以下方法对全局node_modules进行相同的操作:

sudo chown -R me /PATH/TO/GLOBAL/node_modules

(关于npm文件夹位置的更多信息,您拥有任何操作系统这里)

这应该允许您安装带有:npm install -g SOMETHING的全局节点模块,而不需要sudo。请注意,对于这是否是一种安全风险,存在着很多争论。在谷歌上搜索"node_modules权限“,你会发现很多关于这个话题的激烈辩论。对我来说,多年来,我一直和我的固定用户一起拥有这个dir,没有发生任何事件。所以,做一些研究,并决定什么最适合你。最坏的情况是,你只需做sudo npm install -g SOMETHING。没什么大不了的。但我不想这么做。这样,我就可以使用同一个用户完成全局或本地模块,并且只在命令中包含/排除-g标志。讲得通?

据我所知,从来没有一个好的理由运行sudomrtmeteor。当您这样做时,它是将文件放在/root/.meteorite//root/.meteor/ (当然是根作为所有者)的根的主dir中,而不是在您当前登录的用户的home dir中(在您的例子中是/home/me/.meteorite//home/me/.meteor/)。

当您将智能包添加到带有mrt add SOMETHING的流星应用程序中时,它实际上并不是将文件放在应用程序目录中。它是将它们与~/.meteorite/packages连接起来的。这样,您就不会为每个使用该包的应用程序下载新的副本。但是当您使用sudo mrt add SOMETHING时,它却是下载和符号链接到/root/.meteorite/packages。这显然是不必要的权限噩梦。

你可能也想要sudo rm -rf /root/.meteor /root/.meteorite。如果你不正常地发展为根,就没有理由在那里拥有这些东西。所有有流星和陨石的东西都应该安全地运行在/home/me/上。

希望这能把它弄清楚一点。

票数 3
EN

Stack Overflow用户

发布于 2014-08-15 20:15:25

您已经将陨石安装为本地节点模块。你不该这么做。

只需删除node_modules目录即可。如果其他的安装都是正确的,那么你的应用程序就会正常工作。

Meteor抓取项目目录中的所有.js和.html文件,并将它们作为项目文件处理。为了使这些文件正确编译,需要一些约定。节点模块通常不符合这样的约定,因此将它们放在项目dir中的node_modules文件夹中会导致编译错误。

票数 1
EN

Stack Overflow用户

发布于 2014-09-08 22:26:11

有一个脚本可以方便安装带有流星的望远镜:

安装:$ curl https://raw.githubusercontent.com/AndreasPrang/TelescopeJS-Install/master/install.sh | sh

http://andreasprang.de/2014/09/08/how-to-install-script-telescopejs-for-debian-ubuntu/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25332315

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档