Frontend development with Windows

Hi,

I’m trying to start frontend development on a Windows 7 machine. All installation steps works fine but two things won’t work.

1.) Running npm run js_dev won’t work

error Windows_NT 6.1.7601
error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "js_dev"
error node v6.9.5
error npm  v3.10.10
error code ELIFECYCLE
error [email protected] js_dev: `script/gen-service-worker.js && npm run watch_ru_all`
error Exit status 1
error Failed at the [email protected] js_dev script 'script/gen-service-worker.js && npm run watch_ru_all'.
error Make sure you have the latest version of node.js and npm installed.
error If you do, this is most likely a problem with the home-assistant-polymer package,
error not with npm itself.
error Tell the author that this fails on your system:
error     script/gen-service-worker.js && npm run watch_ru_all
error You can get information on how to open an issue for this project with:
error     npm bugs home-assistant-polymer
error Or if that isn't available, you can get their info via:
error     npm owner ls home-assistant-polymer
error There is likely additional logging output above.
verbose exit [ 1, true ]

2.) script/build_frontend does’nt work either

I hope somebody can help me out.

Thx

HI, I too having same problem… please let me know if you found solution

that script in package.json is kinda evil, it assumes your console knows what to do with JS files.

in

\homeassistant\components\frontend\www_static\home-assistant-polymer\package.json

change

“js_dev”: “script/gen-service-worker.js && npm run watch_ru_all”,

to

“js_dev”: “node script/gen-service-worker.js && npm run watch_ru_all”,