edbizarro / gitlab-ci-pipeline-php

:coffee: Docker images for test PHP applications with Gitlab CI (or any other CI platform!)
https://hub.docker.com/r/edbizarro/gitlab-ci-pipeline-php
MIT License
529 stars 167 forks source link

Gyp error with Yarn #30

Closed bedeMarkRadford closed 6 years ago

bedeMarkRadford commented 6 years ago

I get this error when using node-sass with Yarn:

Error: /build/node_modules/node-sass: Command failed.

Which looks like it can't make:

gyp ERR! stack Error: not found: make

I found this when looking for the error: https://github.com/DeviaVir/zenbot/issues/425

Suggesting we need build-essentials in the mix. sudo apt-get install build-essential git

edbizarro commented 6 years ago

yes, you need to install the build-essential package to use make (or just install make and gcc)

edbizarro commented 6 years ago

hi, @bedeMarkRadford Did you get it to work?

bedeMarkRadford commented 6 years ago

I actually went around the problem and removed the dependency. I'm not using Laravels Elixir which was the dependency causing the problems

edbizarro commented 6 years ago

Nice, if I can help you with something else feel free to reach me.

GertjanRoke commented 6 years ago

But why is the node version bumped to node 9 instead of 8? If you stead with node 8 there is no problem with node-sass that can not make a directory.

edbizarro commented 6 years ago

Because node 9 is the latest release

GertjanRoke commented 6 years ago

I know but not the latest LTS, maybe it is a good idea to only use the latest version of node with the latest version of php that your offering.