K
K
komigor2021-11-17 10:33:40
Node.js
komigor, 2021-11-17 10:33:40

Can't do npm i?

Can't do npm i here is the error

here is the output

node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp WARN Tried to download(404): https://github.com/JCMais/node-libcurl/releases/download/v1.3.3/node_libcurl-v1.3.3-node-v51-linux-x64.tar.gz 
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v51 ABI, glibc) (falling back to source compile with node-gyp) 
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/7.10.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/ihor/gm_crm/node_modules/node-libcurl/.node-gyp"
make: вход в каталог «/home/ihor/gm_crm/node_modules/node-libcurl/build»
make: *** Нет правила для сборки цели «../.node-gyp/7.10.0/include/node/common.gypi», требуемой для «Makefile».  Останов.
make: выход из каталога «/home/ihor/gm_crm/node_modules/node-libcurl/build»
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/ihor/gm_crm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:194:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 5.11.0-40-generic
gyp ERR! command "/usr/local/bin/node" "/home/ihor/gm_crm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/ihor/gm_crm/node_modules/node-libcurl/lib/binding/node_libcurl.node" "--module_name=node_libcurl" "--module_path=/home/ihor/gm_crm/node_modules/node-libcurl/lib/binding" "--node_abi_napi=node-v51" "--napi_build_version=0" "--node_napi_label=node-v51"
gyp ERR! cwd /home/ihor/gm_crm/node_modules/node-libcurl
gyp ERR! node -v v7.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /home/ihor/gm_crm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/ihor/gm_crm/node_modules/node-libcurl/lib/binding/node_libcurl.node --module_name=node_libcurl --module_path=/home/ihor/gm_crm/node_modules/node-libcurl/lib/binding --node_abi_napi=node-v51 --napi_build_version=0 --node_napi_label=node-v51' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/ihor/gm_crm/node_modules/node-libcurl/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:194:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:899:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Linux 5.11.0-40-generic
node-pre-gyp ERR! command "/usr/local/bin/node" "/home/ihor/gm_crm/node_modules/node-libcurl/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /home/ihor/gm_crm/node_modules/node-libcurl
node-pre-gyp ERR! node -v v7.10.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok 
Failed to execute '/usr/local/bin/node /home/ihor/gm_crm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/ihor/gm_crm/node_modules/node-libcurl/lib/binding/node_libcurl.node --module_name=node_libcurl --module_path=/home/ihor/gm_crm/node_modules/node-libcurl/lib/binding --node_abi_napi=node-v51 --napi_build_version=0 --node_napi_label=node-v51' (1)
npm WARN [email protected] requires a peer of [email protected]^6.0.0 || ^7.0.0 || ^8.0.0 but none was installed.
npm ERR! Linux 5.11.0-40-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i"
npm ERR! node v7.10.0
npm ERR! npm  v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1

npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-libcurl package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-libcurl
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls node-libcurl
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /root/.npm/_logs/2021-11-17T08_14_13_047Z-debug.log

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Ukolov, 2021-11-17
@alexey-m-ukolov

Could not run curl-config, please make sure libcurl dev package is installed.

What exactly is your problem with - is there too many books or you can't translate the required string?

S
Soslan Aldatov, 2021-11-17
@sptm

You need to install libcurl dev package using your package manager, something like this:

sudo apt install libcurl4-openssl-dev libssl-dev # Debian/Ubuntu
sudo yum install libcurl-devel # CentOS/RHEL
sudo dnf install libcurl-devel # Fedora

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question