meteor - 尝试安装和运行 Telescope/meteor 时出错

标签 meteor meteorite

我已经尝试了一切方法来让 Telescope 运行,使用这些 instructions

当我运行 meteor 时,出现以下错误

[[[[[ ~/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 ,它一开始更有希望,但最后仍然会出现错误:

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  <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c9a3baada6a489f9e7ffe7fc" rel="noreferrer noopener nofollow">[email protected]</a> { [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" "<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c4aeb1ada7a184f4eaf0eaf4" rel="noreferrer noopener nofollow">[email protected]</a>"
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" "<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c0aab5a9a3a580f0eef4eef0" rel="noreferrer noopener nofollow">[email protected]</a>"
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" "<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1e746b777d7b5e2e302a302e" rel="noreferrer noopener nofollow">[email protected]</a>"
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  <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5f352a363c3a1f6f716b716f" rel="noreferrer noopener nofollow">[email protected]</a> { [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! <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="aecdc1c0dacbd6dac7c8d7ee9e809f8096" rel="noreferrer noopener nofollow">[email protected]</a> install: `node-gyp rebuild`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a5c6cacbd1c0ddd1ccc3dce5958b948b9d" rel="noreferrer noopener nofollow">[email protected]</a> 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" "<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c8a2bda1abad88f8e6fce6f8" rel="noreferrer noopener nofollow">[email protected]</a>"
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 所以然后我尝试删除干净并重新开始:

sudo mrt uninstall
sudo mrt uninstall --system
rm -rf ~/.meteorite

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

现在我仍然进入 Telescope 并点击 mrt 但收到此错误:

[[[[[ ~/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/

真的需要让它发挥作用,有人可以帮助我吗?非常感谢你! :)

最佳答案

看起来您以 root 身份运行了一个不应该拥有的命令,并且稍微破坏了您的文件权限。您始终可以使用以下命令安全地清除主目录中的内容:

sudo chown -R me/home/me

(假设您的非 root 用户名是“me”,如您的错误所示)

这将递归地将“me”设置为/home/me/中每个文件的所有者。您可以选择对全局 node_modules 执行相同的操作:

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

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

这应该允许您使用以下命令安装全局节点模块:npm install -g SOMETHING,而无需 sudo。请注意,关于这是否存在安全风险存在很多争论。在 Google 上搜索“node_modules 权限”,您会发现大量关于该主题的激烈辩论。对我来说,我多年来一直与我的普通用户一起拥有该目录,没有发生任何事故。因此,做一些研究并决定什么最适合您。最坏的情况是,您只需要执行 sudo npm install -g SOMETHING 即可。没什么大不了的。但我宁愿不必 sudo。这样我就可以使用同一用户执行全局或本地模块,并且仅在命令中包含/排除 -g 标志。合理?

据我所知,没有充分的理由为 mrtmeteor 运行 sudo。当您这样做时,它会将文件放入 root 的主目录中 /root/.meteorite//root/.meteor/ (当然,root 作为所有者)并且不在您当前登录的用户的主目录中(在您的情况下, /home/me/.meteorite//home/me/.meteor/)。

当您使用mrt add SOMETHING将智能包添加到 meteor 应用程序时,它实际上并没有将文件放入您的应用程序目录中。它将它们符号链接(symbolic link)到~/.meteorite/packages。这样,您就不必为使用该软件包的每个应用程序下载新副本。但是,当您sudo mrt add SOMETHING时,它会下载并符号链接(symbolic link)到/root/.meteorite/packages 相反。这显然是一场不必要的权限噩梦。

您可能也想sudo rm -rf/root/.meteor/root/.meteorite。如果你通常不以 root 身份开发,那么就没有理由在那里拥有这些东西。与 meteor 和陨石相关的所有内容都应该在 /home/me/ 中安全运行。

希望这能澄清一点。

关于meteor - 尝试安装和运行 Telescope/meteor 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25332315/

相关文章:

javascript - *ngIf 不像其他 *ngIf 那样工作

meteor - 如何从 meteor 外壳以特定用户身份登录

meteor - 既然 Meteor 0.6.0+ 支持 npm 包,Meteorite 是否仍然相关?

meteor - 如何将参数传递给带有陨石的 Iron-Router Handlebars 中的 pathFor?

javascript - meteor 的 restrictCreationByEmailDomain 选项如何工作?

javascript - 我如何使用 Meteor 创建多页应用程序?

javascript - 错误 : Failed to execute 'insertBefore' on 'Node'

javascript - 数据完全渲染时的 React/Meteor 初始化函数

javascript - 如何在 Meteor 中进行简单的数据库查询

css - Meteor 如何为不同的媒体类型提供多个 css?