openmove / journey

Openmove OpenTripPlanner UI
Other
4 stars 0 forks source link

build with Node v18 #10

Open stefanocudini opened 1 year ago

stefanocudini commented 1 year ago

docker fail at build:

> [6/9] RUN yarn install && yarn build:                                                                                                                                       
#10 0.425 yarn install v1.22.19                                                                                                                                                
#10 0.525 [1/4] Resolving packages...                                                                                                                                          
#10 1.128 [2/4] Fetching packages...                                                                                                                                           
#10 21.31 warning mini-css-extract-plugin@0.4.5: Invalid bin field for "mini-css-extract-plugin".                                                                              
#10 27.09 [3/4] Linking dependencies...
#10 27.09 warning " > react-dates@6.1.0" has unmet peer dependency "react-addons-shallow-compare@>=0.14".
#10 27.10 warning " > sass-loader@6.0.7" has incorrect peer dependency "node-sass@^4.0.0".
#10 27.10 warning "semantic-release > @semantic-release/github > @octokit/rest > @octokit/plugin-request-log@1.0.4" has unmet peer dependency "@octokit/core@>=3".
#10 27.10 warning " > styled-components@5.3.3" has unmet peer dependency "react-is@>= 16.8.0".
#10 34.43 [4/4] Building fresh packages...
#10 36.78 error /journey/node_modules/node-sass: Command failed.
#10 36.78 Exit code: 1
#10 36.78 Command: node scripts/build.js
#10 36.78 Arguments: 
#10 36.78 Directory: /journey/node_modules/node-sass
#10 36.78 Output:
#10 36.78 Building: /usr/local/bin/node /journey/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
#10 36.78 gyp info it worked if it ends with ok
#10 36.78 gyp verb cli [
#10 36.78 gyp verb cli   '/usr/local/bin/node',
#10 36.78 gyp verb cli   '/journey/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js',
#10 36.78 gyp verb cli   'rebuild',
#10 36.78 gyp verb cli   '--verbose',
#10 36.78 gyp verb cli   '--libsass_ext=',
#10 36.78 gyp verb cli   '--libsass_cflags=',
#10 36.78 gyp verb cli   '--libsass_ldflags=',
#10 36.78 gyp verb cli   '--libsass_library='
#10 36.78 gyp verb cli ]
#10 36.78 gyp info using node-gyp@7.1.2
#10 36.78 gyp info using node@18.15.0 | linux | x64
#10 36.78 gyp verb command rebuild []
#10 36.78 gyp verb command clean []
#10 36.78 gyp verb clean removing "build" directory
#10 36.78 gyp verb command configure []
#10 36.78 gyp verb find Python Python is not set from command line or npm configuration
#10 36.78 gyp verb find Python Python is not set from environment variable PYTHON
#10 36.78 gyp verb find Python checking if "python3" can be used
#10 36.78 gyp verb find Python - executing "python3" to get executable path
#10 36.78 gyp verb find Python - "python3" is not in PATH or produced an error
#10 36.78 gyp verb find Python checking if "python" can be used
#10 36.78 gyp verb find Python - executing "python" to get executable path
#10 36.78 gyp verb find Python - "python" is not in PATH or produced an error
#10 36.78 gyp verb find Python checking if "python2" can be used
#10 36.78 gyp verb find Python - executing "python2" to get executable path
#10 36.78 gyp verb find Python - "python2" is not in PATH or produced an error
#10 36.78 gyp ERR! find Python 
#10 36.78 gyp ERR! find Python Python is not set from command line or npm configuration
#10 36.78 gyp ERR! find Python Python is not set from environment variable PYTHON
#10 36.78 gyp ERR! find Python checking if "python3" can be used
#10 36.78 gyp ERR! find Python - "python3" is not in PATH or produced an error
#10 36.78 gyp ERR! find Python checking if "python" can be used
#10 36.78 gyp ERR! find Python - "python" is not in PATH or produced an error
#10 36.78 gyp ERR! find Python checking if "python2" can be used
#10 36.78 gyp ERR! find Python - "python2" is not in PATH or produced an error
#10 36.78 gyp ERR! find Python 
#10 36.78 gyp ERR! find Python **********************************************************
#10 36.78 gyp ERR! find Python You need to install the latest version of Python.
#10 36.78 gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
#10 36.78 gyp ERR! find Python you can try one of the following options:
#10 36.78 gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
#10 36.78 gyp ERR! find Python   (accepted by both node-gyp and npm)
#10 36.78 gyp ERR! find Python - Set the environment variable PYTHON
#10 36.78 gyp ERR! find Python - Set the npm configuration variable python:
#10 36.78 gyp ERR! find Python   npm config set python "/path/to/pythonexecutable"
#10 36.78 gyp ERR! find Python For more information consult the documentation at:
#10 36.78 gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
#10 36.78 gyp ERR! find Python **********************************************************
#10 36.78 gyp ERR! find Python 
#10 36.78 gyp ERR! configure error 
#10 36.78 gyp ERR! stack Error: Could not find any Python installation to use
#10 36.78 gyp ERR! stack     at PythonFinder.fail (/journey/node_modules/node-sass/node_modules/node-gyp/lib/find-python.js:302:47)
#10 36.78 gyp ERR! stack     at PythonFinder.runChecks (/journey/node_modules/node-sass/node_modules/node-gyp/lib/find-python.js:136:21)
#10 36.78 gyp ERR! stack     at PythonFinder.<anonymous> (/journey/node_modules/node-sass/node_modules/node-gyp/lib/find-python.js:179:16)
#10 36.78 gyp ERR! stack     at PythonFinder.execFileCallback (/journey/node_modules/node-sass/node_modules/node-gyp/lib/find-python.js:266:16)
#10 36.78 gyp ERR! stack     at exithandler (node:child_process:427:5)
#10 36.78 gyp ERR! stack     at ChildProcess.errorhandler (node:child_process:439:5)
#10 36.78 gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
#10 36.78 gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:289:12)
#10 36.78 gyp ERR! stack     at onErrorNT (node:internal/child_process:476:16)
#10 36.78 gyp ERR! stack     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
#10 36.78 gyp ERR! System Linux 5.15.0-71-generic
#10 36.78 gyp ERR! command "/usr/local/bin/node" "/journey/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
#10 36.78 gyp ERR! cwd /journey/node_modules/node-sass
#10 36.78 gyp ERR! node -v v18.15.0
#10 36.78 gyp ERR! node-gyp -v v7.1.2
#10 36.78 gyp ERR! not ok 
#10 36.78 Build failed with error code: 1
#10 36.78 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.