Skip to content

Instantly share code, notes, and snippets.

@marcpabst
Created September 12, 2016 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcpabst/8d2736029b5a35e5eab518c5c9803d12 to your computer and use it in GitHub Desktop.
Save marcpabst/8d2736029b5a35e5eab518c5c9803d12 to your computer and use it in GitHub Desktop.
pi@raspberrypi:~/home-assistant $ sudo script/build_frontend
> home-assistant-polymer@1.0.0 clean /home/pi/home-assistant/homeassistant/components/frontend/www_static/home-assistant-polymer
> rm -rf build/* build-temp/*
> home-assistant-polymer@1.0.0 frontend_prod /home/pi/home-assistant/homeassistant/components/frontend/www_static/home-assistant-polymer
> npm run js_prod && npm run frontend_html
> home-assistant-polymer@1.0.0 js_prod /home/pi/home-assistant/homeassistant/components/frontend/www_static/home-assistant-polymer
> BUILD_DEV=0 npm run ru_all
> home-assistant-polymer@1.0.0 ru_all /home/pi/home-assistant/homeassistant/components/frontend/www_static/home-assistant-polymer
> npm run ru_core | npm run ru_demo
> home-assistant-polymer@1.0.0 ru_demo /home/pi/home-assistant/homeassistant/components/frontend/www_static/home-assistant-polymer
> rollup --config rollup/demo.js
> home-assistant-polymer@1.0.0 frontend_html /home/pi/home-assistant/homeassistant/components/frontend/www_static/home-assistant-polymer
> script/vulcanize.js
/home/pi/home-assistant/homeassistant/components/frontend/www_static/home-assistant-polymer/node_modules/vulcanize/node_modules/dom5/dom5.js:376
/**
^^^
SyntaxError: Invalid or unexpected token
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:528:28)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/pi/home-assistant/homeassistant/components/frontend/www_static/home-assistant-polymer/node_modules/vulcanize/lib/vulcan.js:18:12)
at Module._compile (module.js:556:32)
npm ERR! Linux 4.4.11-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "frontend_html"
npm ERR! node v6.5.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! home-assistant-polymer@1.0.0 frontend_html: `script/vulcanize.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the home-assistant-polymer@1.0.0 frontend_html script 'script/vulcanize.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the home-assistant-polymer package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! script/vulcanize.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs home-assistant-polymer
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls home-assistant-polymer
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/home-assistant/homeassistant/components/frontend/www_static/home-assistant-polymer/npm-debug.log
npm ERR! Linux 4.4.11-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "frontend_prod"
npm ERR! node v6.5.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! home-assistant-polymer@1.0.0 frontend_prod: `npm run js_prod && npm run frontend_html`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the home-assistant-polymer@1.0.0 frontend_prod script 'npm run js_prod && npm run frontend_html'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the home-assistant-polymer package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run js_prod && npm run frontend_html
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs home-assistant-polymer
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls home-assistant-polymer
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/home-assistant/homeassistant/components/frontend/www_static/home-assistant-polymer/npm-debug.log
cp: cannot stat ‘bower_components/webcomponentsjs/webcomponents-lite.min.js’: No such file or directory
fs.js:640
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT: no such file or directory, open '../frontend.html'
at Error (native)
at Object.fs.openSync (fs.js:640:18)
at Object.fs.readFileSync (fs.js:508:33)
at md5 (/home/pi/home-assistant/homeassistant/components/frontend/www_static/home-assistant-polymer/script/gen-service-worker.js:40:16)
at staticFingerprinted.forEach.fn (/home/pi/home-assistant/homeassistant/components/frontend/www_static/home-assistant-polymer/script/gen-service-worker.js:46:14)
at Array.forEach (native)
at Object.<anonymous> (/home/pi/home-assistant/homeassistant/components/frontend/www_static/home-assistant-polymer/script/gen-service-worker.js:44:21)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
cp: cannot stat ‘build/service_worker.js’: No such file or directory
gzip: ./panels/*.html: No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment