Skip to content

mac m1 [email protected] install: node-pre-gyp install --fallback-to-build #868

@Cucak

Description

@Cucak

=> ERROR [dependencies 3/5] RUN npm install --production=false 14.4s

[dependencies 3/5] RUN npm install --production=false:
#12 13.35
#12 13.35 > [email protected] install /usr/src/app/node_modules/bcrypt
#12 13.35 > node-pre-gyp install --fallback-to-build
#12 13.35
#12 13.72 node-pre-gyp ERR! install response status 404 Not Found on https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.0.1/bcrypt_lib-v5.0.1-napi-v3-linux-arm64-glibc.tar.gz
#12 13.72 node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v83 ABI, glibc) (falling back to source compile with node-gyp)
#12 13.72 node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/kelektiv/node.bcrypt.js/releases/download/v5.0.1/bcrypt_lib-v5.0.1-napi-v3-linux-arm64-glibc.tar.gz
#12 13.86 gyp ERR! find Python
#12 13.86 gyp ERR! find Python Python is not set from command line or npm configuration
#12 13.86 gyp ERR! find Python Python is not set from environment variable PYTHON
#12 13.86 gyp ERR! find Python checking if "python" can be used
#12 13.86 gyp ERR! find Python - "python" is not in PATH or produced an error
#12 13.86 gyp ERR! find Python checking if "python2" can be used
#12 13.86 gyp ERR! find Python - "python2" is not in PATH or produced an error
#12 13.86 gyp ERR! find Python checking if "python3" can be used
#12 13.86 gyp ERR! find Python - "python3" is not in PATH or produced an error
#12 13.86 gyp ERR! find Python
#12 13.86 gyp ERR! find Python **********************************************************
#12 13.86 gyp ERR! find Python You need to install the latest version of Python.
#12 13.86 gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
#12 13.86 gyp ERR! find Python you can try one of the following options:
#12 13.86 gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
#12 13.86 gyp ERR! find Python (accepted by both node-gyp and npm)
#12 13.86 gyp ERR! find Python - Set the environment variable PYTHON
#12 13.86 gyp ERR! find Python - Set the npm configuration variable python:
#12 13.86 gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
#12 13.86 gyp ERR! find Python For more information consult the documentation at:
#12 13.86 gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
#12 13.86 gyp ERR! find Python **********************************************************
#12 13.86 gyp ERR! find Python
#12 13.86 gyp ERR! configure error
#12 13.86 gyp ERR! stack Error: Could not find any Python installation to use
#12 13.86 gyp ERR! stack at PythonFinder.fail (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:307:47)
#12 13.86 gyp ERR! stack at PythonFinder.runChecks (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:136:21)
#12 13.86 gyp ERR! stack at PythonFinder. (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:179:16)
#12 13.86 gyp ERR! stack at PythonFinder.execFileCallback (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:271:16)
#12 13.86 gyp ERR! stack at exithandler (child_process.js:315:5)
#12 13.86 gyp ERR! stack at ChildProcess.errorhandler (child_process.js:327:5)
#12 13.86 gyp ERR! stack at ChildProcess.emit (events.js:315:20)
#12 13.86 gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
#12 13.86 gyp ERR! stack at onErrorNT (internal/child_process.js:465:16)
#12 13.86 gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:80:21)
#12 13.86 gyp ERR! System Linux 5.10.25-linuxkit
#12 13.86 gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/usr/src/app/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/usr/src/app/node_modules/bcrypt/lib/binding/napi-v3" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3"
#12 13.86 gyp ERR! cwd /usr/src/app/node_modules/bcrypt
#12 13.86 gyp ERR! node -v v14.15.5
#12 13.86 gyp ERR! node-gyp -v v5.1.0
#12 13.86 gyp ERR! not ok
#12 13.86 node-pre-gyp ERR! build error
#12 13.86 node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/src/app/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/usr/src/app/node_modules/bcrypt/lib/binding/napi-v3 --napi_version=7 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
#12 13.86 node-pre-gyp ERR! stack at ChildProcess. (/usr/src/app/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
#12 13.86 node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)
#12 13.86 node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)
#12 13.86 node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
#12 13.86 node-pre-gyp ERR! System Linux 5.10.25-linuxkit
#12 13.86 node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/src/app/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
#12 13.86 node-pre-gyp ERR! cwd /usr/src/app/node_modules/bcrypt
#12 13.86 node-pre-gyp ERR! node -v v14.15.5
#12 13.86 node-pre-gyp ERR! node-pre-gyp -v v1.0.4
#12 13.86 node-pre-gyp ERR! not ok
#12 13.86 Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/usr/src/app/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/usr/src/app/node_modules/bcrypt/lib/binding/napi-v3 --napi_version=7 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
#12 14.17 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
#12 14.17 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm64"})
#12 14.17
#12 14.24 npm ERR! code ELIFECYCLE
#12 14.24 npm ERR! errno 1
#12 14.24 npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
#12 14.24 npm ERR! Exit status 1
#12 14.24 npm ERR!
#12 14.24 npm ERR! Failed at the [email protected] install script.
#12 14.24 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I am using mac m1 and basically tried reinstalling whole my setup, I tried different node packages as well.
I need to know if this package should not have problem with mac m1 cpu?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions