【发布时间】:2014-09-09 06:26:11
【问题描述】:
为了让 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
现在我仍然 cd 进入 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/
我真的需要让它工作,有人可以帮我吗?非常感谢你! :)
【问题讨论】: