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

yarn/node problems? #39

Closed josefglatz closed 6 years ago

josefglatz commented 6 years ago

from one day to another: yarn throws:

$ yarn
yarn install v1.6.0
(node:42) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.1.3: The platform "linux" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
error /builds/p/ae/projectname/app/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments: 
Directory: /builds/p/ae/projectname/app/node_modules/node-sass

Tested images are:

were there any breaking changes or updates?

as a workaround - is it possible the fix e.g. the 7.1-alpine tag to a sh256 of May the 4th?

josefglatz commented 6 years ago

Seems like the new node/gulp/yarn versions needs newer package.json packages!

For others: my solution was: updating the used npm packages of my project's package.json file