我已经在太阳下尝试了所有东西,让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 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所以然后我试着擦干净并重新开始:
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/
我真的需要让它发挥作用,有人可以帮助我吗?非常感谢你! :)
答案 0 :(得分:3)
看起来你以root身份运行了一个命令,你不应该对文件权限进行一些修改。您可以随时通过以下方式安全地清除您的家庭目录:
sudo chown -R me /home/me
(假设你的非root用户名是&#34; me&#34;,如你的错误中所示)
这将递归地设置&#34; me&#34;作为/ home / me /中每个文件的所有者。您可以选择对全局node_modules执行相同的操作:
sudo chown -R me /PATH/TO/GLOBAL/node_modules
(有关您拥有的任何操作系统的{n}文件夹位置的更多信息here)
这应该允许您使用:npm install -g SOMETHING
安装全局节点模块,而不需要sudo。请注意,关于这是否存在安全风险存在很多争议。谷歌搜索&#34; node_modules权限&#34;你会发现很多关于这个主题的热烈辩论。对我来说,我和我的普通用户一直拥有这个目录多年没有发生任何事故。所以做一点研究并决定什么最适合你。最糟糕的情况是,你只需做sudo npm install -g SOMETHING
。没什么大不了的。但我不喜欢sudo。这样我可以使用相同的用户执行全局或本地模块,并且只在命令中包含/排除-g标志。合理?
据我所知,从来没有充分的理由为sudo
或mrt
运行meteor
。当你这样做时,它将文件放在root的主目录/root/.meteorite/
和/root/.meteor/
(当然是root用户),而不是你当前用户的主目录以(在您的情况下为/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
。如果你没有通常以root身份开发,那么没有理由在那里拥有那些东西。流星和陨石的一切都应该安全地从/home/me/
开始运作。
希望这会把它搞清楚一点。
答案 1 :(得分:1)
您已将陨石安装为本地节点模块。你不应该这样做。
只需删除您的node_modules
目录即可。如果其他所有内容都安装正确,那么您的应用应该可以正常运行。
Meteor抓取项目目录中的所有.js和.html文件,并将它们视为项目文件。为了正确编译这些文件,需要一些约定。节点模块通常不符合这些约定,因此将它们放在项目目录中的node_modules
文件夹中会导致编译错误。
答案 2 :(得分:0)
有一个脚本可以通过meteor轻松安装Telescope:
安装:$ 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/