michaelmcandrew/civicrm-buildkit-docker

NodeJS error when creating dmaster

Closed this issue ยท 8 comments

Hi,
I get the following warnings when I create a new dmaster build:

WARNING: Failed to locate command "node". NodeJS (http://nodejs.org/) is required for development of CiviCRM v4.6+.
WARNING: Failed to locate command "npm". NodeJS (http://nodejs.org/) is required for development of CiviCRM v4.6+.

Later the building process fails at this point:

./bin/setup.sh: line 153: npm: command not found

-> full log

Could this be related to issue #68 or PR #69?

It sounds related to me but node and npm should be installed (albeit older versions). Have you tried applying #69 to see if that helps?

Hello @wmortada,
I tried your branch wmortada:68-nodejs-outdated with the same result.
-> full log

As a workaround I installed NodeJS and npm manually.

bkb
sudo apt update
sudo apt install npm

Are you building your own container or using the one from Docker Hub? That branch will only make a difference if you are building your own container. If you could paste the commands you've used we can check.

I'm wondering if the container on Docker Hub is missing node?

I can replicate this, unfortunately.

I am presuming that civi-download-tools was not able to actually download node. I am running docker build civicrm and having a look at the output to see what went wrong...

Are you building your own container or using the one from Docker Hub? That branch will only make a difference if you are building your own container. If you could paste the commands you've used we can check.

Ouch! Didn't know that, sorry. Building the docker container on your wmortada:68-nodejs-outdated branch fixed the issue. Thanks!

@MarcMichalsky - see #68 (comment) - a new docker hub should be published overnight now...