Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erreur sur webpack lors de l'installation du portail #229

Open
r0one opened this issue Jun 14, 2019 · 6 comments
Open

Erreur sur webpack lors de l'installation du portail #229

r0one opened this issue Jun 14, 2019 · 6 comments
Labels
bug Something isn't working deployment Issues with production and development of the code

Comments

@r0one
Copy link
Contributor

r0one commented Jun 14, 2019

git clone, docker-compose up, docker logs portail_nodejs_1:

> @ watch /var/www/html
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: spawn node_modules/webpack/bin/webpack.js ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:362:16)
    at _combinedTickCallback (internal/process/next_tick.js:139:11)
    at process._tickCallback (internal/process/next_tick.js:181:9)
    at Function.Module.runMain (module.js:696:11)
    at startup (bootstrap_node.js:204:16)
    at bootstrap_node.js:625:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ watch: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ watch script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-06-14T13_23_41_252Z-debug.log
@r0one r0one changed the title [docker-compose]Erreur sur webpack (dans le conteneur node) Erreur sur webpack lors de l'installation du portail Jun 14, 2019
@r0one
Copy link
Contributor Author

r0one commented Jun 14, 2019

On a une erreur similaire avec un composer install puis portail install :

1/9 [▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░]  11% [Portail Install] Préparation
 [Portail Install] Préparation - Portail
  1/14 [▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░]   7% /!\ Le fichier .env existe déjà /!\ 

 Le remplacer (ancienne version déplacée en .env.last) ? (yes/no) [no]:
 > 

 2/9 [▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░]  22% [Portail Install] Installation des dépendances Composer
sh: 1: composer: not found
 3/9 [▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░]  33% [Portail Install] Définition des clés
Application key [base64:qWSbmcqbydBYsM4CmGp/xXScjHkexwnzXuhrDFrXcAY=] set successfully.
Encryption keys already exist. Use the --force option to overwrite them.
 4/9 [▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░]  44% [Portail Install] Installation des dépendances NodeJS
npm WARN @babel/[email protected] requires a peer of @babel/core@^7.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/[email protected] requires a peer of @babel/core@^7.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/[email protected] requires a peer of @babel/core@^7.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/[email protected] requires a peer of @babel/core@^7.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/[email protected] requires a peer of @babel/core@^7.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @babel/[email protected] requires a peer of @babel/core@^7.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^15.6.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/.staging/fsevents-858f4cf3/node_modules/mkdirp/node_modules/abbrev' -> '/home/romain/Documents/dev/portail/node_modules/.staging/abbrev-f0d0812f'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/core-util-is):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/core-util-is' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/.core-util-is.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/delegates):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/delegates' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/.delegates.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/fs.realpath):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/fs.realpath' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/.fs.realpath.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/has-unicode):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/has-unicode' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/.has-unicode.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/aproba):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/aproba' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.aproba.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/balanced-match):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/balanced-match' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.balanced-match.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/concat-map):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/concat-map' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.concat-map.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/brace-expansion):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/brace-expansion' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.brace-expansion.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/console-control-strings):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/console-control-strings' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.console-control-strings.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/delegates):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/delegates' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.delegates.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/fs.realpath):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/fs.realpath' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.fs.realpath.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/has-unicode):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/has-unicode' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.has-unicode.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/inherits):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/inherits' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.inherits.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/minimatch):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/minimatch' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.minimatch.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/glob):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/glob' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/.glob.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/inflight):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/inflight' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.inflight.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/debug):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/debug' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/.debug.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/deep-extend):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/deep-extend' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/.deep-extend.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/detect-libc):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/detect-libc' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/.detect-libc.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/fs-minipass):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/fs-minipass' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/.fs-minipass.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/gauge):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/gauge' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/.gauge.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/.staging/mkdirp-a4835faf' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/abbrev):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/abbrev' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.abbrev.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/ansi-regex):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/ansi-regex' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.ansi-regex.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/chownr):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/chownr' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.chownr.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/code-point-at):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/code-point-at' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.code-point-at.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/core-util-is):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/core-util-is' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.core-util-is.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/debug):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/debug' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.debug.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/deep-extend):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/deep-extend' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.deep-extend.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/detect-libc):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/detect-libc' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.detect-libc.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/fs-minipass):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/fs-minipass' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.fs-minipass.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/gauge):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/gauge' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.gauge.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/glob):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/glob' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.glob.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/iconv-lite):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/iconv-lite' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.iconv-lite.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/ignore-walk):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/ignore-walk' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.ignore-walk.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/ini):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/ini' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.ini.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/is-fullwidth-code-point):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/is-fullwidth-code-point' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.is-fullwidth-code-point.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/isarray):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/isarray' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.isarray.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/mkdirp/node_modules/minimist):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/minimist' -> '/home/romain/Documents/dev/portail/node_modules/fsevents/node_modules/mkdirp/node_modules/.minimist.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/react-datetime-range-picker/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

sh: 1: cross-env: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/romain/.npm/_logs/2019-06-14T13_50_58_380Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ dev: `npm run development`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/romain/.npm/_logs/2019-06-14T13_50_58_392Z-debug.log
 5/9 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░]  55% [Portail Install] Migration

Visiblement c'est pas la faute de docker, mais celle de webpack.

@r0one
Copy link
Contributor Author

r0one commented Jun 14, 2019

Le .env que j'ai utilisé pour l'installation sans docker:

APP_NAME="Portail des Assos"
APP_ENV=develop
APP_KEY=base64:qWSbmcqbydBYsM4CmGp/xXScjHkexwnzXuhrDFrXcAY=
APP_DEBUG=true
APP_URL=http://localhost:8000
APP_ASSO=simde

LOG_CHANNEL=stack

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=portail
DB_USERNAME=portail
DB_PASSWORD=portail

OLD_DB_CONNECTION=mysql
OLD_DB_HOST=127.0.0.1
OLD_DB_PORT=3306
OLD_DB_DATABASE=portail-old
OLD_DB_USERNAME=portail-old
OLD_DB_PASSWORD=portail-old

BROADCAST_DRIVER=log
CACHE_DRIVER=redis
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=database

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

CAS_URL=
CAS_IMAGE=

GINGER_KEY=

@r0one r0one added bug Something isn't working deployment Issues with production and development of the code labels Jul 2, 2019
@NastuzziSamy
Copy link
Contributor

@CdRom1 tu es bien sur develop ?

  • tu peux me donner ton package-lock ? + as tu des changements git durant ton installl ?

@lvaroqui
Copy link

lvaroqui commented Aug 28, 2019

J'ai la même erreur sur develop @NastuzziSamy, voilà mon package-lock.

J'ai dû remplacer mysql-client par mariadb-client dans le app.dockerfile pour réussir à build le container php. Voir erreur sur stackoverflow.

@lvaroqui
Copy link

Par contre en utilisant directement composer et php artisan j'ai aucun problème

@Minigugus
Copy link
Contributor

C'est juste que cross-env est supposé installé par défaut, ce qui est généralement le cas si on l'utilise pas docker. Or il n'était pas installé dans les containers avec l'ancienne configuration

sh: 1: cross-env: not found

Cette issue sera donc réglé quand #278 sera merge 😉

RUN npm install --global cross-env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working deployment Issues with production and development of the code
Projects
None yet
Development

No branches or pull requests

4 participants