0Day Forums
Error with npm install - a pre-gyp error - Printable Version

+- 0Day Forums (https://0day.red)
+-- Forum: Coding (https://0day.red/Forum-Coding)
+--- Forum: NodeJs (https://0day.red/Forum-NodeJs)
+--- Thread: Error with npm install - a pre-gyp error (/Thread-Error-with-npm-install-a-pre-gyp-error)

Pages: 1 2


RE: Error with npm install - a pre-gyp error - schnorkeledfybwebattm - 07-21-2023

What worked for me was updating Node to the latest version.


RE: Error with npm install - a pre-gyp error - welder501216 - 07-21-2023

For me the following worked,

1. Download the package from git (

[To see links please register here]

) as zip
2. Extract the zip
3. npm install --build-from-source --sqlite=/path/to/extracted/folder

Refer to

[To see links please register here]




RE: Error with npm install - a pre-gyp error - melany909 - 07-21-2023

Just need to downgrade node to 10, then it works well.

sudo n 10.16.0

and DONE!


RE: Error with npm install - a pre-gyp error - alcala97 - 07-21-2023

**I am also getting similar error**

when trying to install **bycrpt** which have a dependencies on [node-gyp][1]

[![Image Error][2]][2]

inside the installation guideline [Bycrpt][3]
I found the the solution of error which say's

`node-pre-gyp ERR! Tried to download(404):

[To see links please register here]

`


I did follow the guideline and resolve this error (which cause due to dependencies)

**##SIMPLE SOLUTION##**

I changed the version of `bycrpt` from `1.0.3` to `5.0.1`

[![Byrcpt version][4]][4]


[1]:

[To see links please register here]

[2]:

[3]:

[To see links please register here]

[4]:



RE: Error with npm install - a pre-gyp error - mikaeulaxfje - 07-21-2023

It's work for me. For Chinese developer, create `.npmrc` file, and add:

`node-pre-gyp=https://npm.taobao.org/mirrors/node-pre-gyp`