Zenika-Training / zenika-formation-framework

Tools to build and present our training material
8 stars 25 forks source link

Install dependencies failed with node 8 and 10 #240

Open ClementVanPeuter opened 5 years ago

ClementVanPeuter commented 5 years ago

Maybe see #236 ?

ENOENT: no such file or directory, chmod '/Users/brunosabot/repos/github.com/Zenika/formation-vuejs/node_modules/highlight.js/tools/build.js'

when npm install .

brunosabot commented 5 years ago

Hey, I tried to install it with node 6.16.0 (using nvm), node 8.15.0 (using nvm) and node 10.15.1 (using nvm) on MacOS Mojave Also tried with yarn but same error as #195 Tried executing with docker but got: run.sh: line 49: 'open-url': not a valid identifier

hgwood commented 5 years ago

@brunosabot could you try npm ci instead of npm install?

brunosabot commented 5 years ago

Unfortunately, the package-lock.json file in the repository Zenika/formation-vuejs is out to date with the package.json file.

hgwood commented 5 years ago

Could you try removing all ranges from package.json (all ^ and ~) and retry npm install?

brunosabot commented 5 years ago

Same error without the ranges (I only have 2 dependencies and one devDependencies): "grunt": "0.4.5", "zenika-formation-framework": "3.3.1", "grunt-cli": "1.3.2" It still does not work even with a fixed version.

However, the docker script works with bash but not with sh.

hgwood commented 5 years ago

OK, is the docker script a acceptable workaround for you?

brunosabot commented 5 years ago

Yes, I think it will be good enough