Impossible to develop frontend?

Trying to setup dev environment and failing on css-slam. Tried many node versions. Tried hassbian and debian and from within the VENV and out of it. Help please.

pi@hassbian:/srv/home-assistant-polymer $ sudo script/bootstrap
yarn install v1.5.1
[1/4] Resolving packages…
[2/4] Fetching packages…
error [email protected]: The engine “node” is incompatible with this module. Expected version “>=6”.
error An unexpected error occurred: “Found incompatible module”.
info If you think this is a bug, please open a bug report with the information provided in “/srv/home-assistant-polymer/yarn-error.log”.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

The log file just shows at the end:

Trace:
Error: Found incompatible module
at MessageError.Error (native)
at new MessageError (/usr/share/yarn/lib/cli.js:186:110)
at checkOne (/usr/share/yarn/lib/cli.js:62444:11)
at Object.check (/usr/share/yarn/lib/cli.js:62463:5)
at /usr/share/yarn/lib/cli.js:22803:73
at next (native)
at step (/usr/share/yarn/lib/cli.js:98:30)
at /usr/share/yarn/lib/cli.js:109:13
at run (/usr/share/yarn/lib/cli.js:100334:22)
at /usr/share/yarn/lib/cli.js:100347:28

Please help! Thanks.

Installed debian from 0 and then added hass dev and then hass polymer - same result!

@balloob, @andrey, @armills sorry to quote you personally but I’m desperate for a solution and no one replied… Any ideas why css-slam is incompatible with node? Thanks for your time!

You shouldn’t be using sudo for any of these commands. You’ll probably need to recreate your environment if you did.

Can you confirm that you’ve followed all the steps from the frontend develoment guide? It seems you have the wrong version of node.

Thanks for responding.
I first used hassbian and then I thought it’s not right because the instructions were to get both folders under the same parent. So I started anew with Raspbian and then first followed the article on general development environment setup:


This uses SUDO quite a lot…
After getting that done I moved to the Frontend development article that you quoted and tried to follow it.


I didn’t know if you meant to run it from within the VENV or not… So I tried from within… Actually I think the docs should make that point clear for future developers.

Also it doesn’t say which node version to install. It says to run nvm install but this command just says there’s no config available and thus I need to select the version. I tries several from 8.X and 6.X and they all failed with css-slam.

Thanks for the help in pointing out my mistakes and how to avoid SUDO as well…

OK, sounds like it’s probably just a node problem then. Are you running nvm install from the polymer repo? It should be finding the correct node version from .nvmrc https://github.com/home-assistant/home-assistant-polymer/blob/master/.nvmrc

I thought I did. Anyway did it now. It asked for 8.8.1 which I tried before.
Same result. Fails on css-slam…

What’s the output of which node; node -v?

v8.8.1
I ran nvm use to make sure of it before repeating the installation

Any ideas?