npm i fails to run in a clonned git project

So we are working on a project and this is the problem that I think I am facing from my side.

This folder already has package-lock.json and package.json file but my teammate insisted to install npm but when i ran

npm i

in terminal

it downloads at first showing me the node_modules folder but then it disappears showing me this:

enter image description here

I looked around and I saw the node_module folder is ignored in git so I even tried out in different folder but npm i runs fine after initializing npm. I think that it has something to do with bcrypt? Please help me out with this.

  • Don’t show images of text. Show the text. Also, npm will give you a file location for the real log, so: did you read that log file to find out what’s going wrong?

    – 




  • node-gyp generally involves NPM modules that are based on a compiled C/C++ library, which will be architecture dependent. You likely are attempting to use a version of bcrypt that is incompatible with your system. See the bcrypt NPM documentation, which has a section regarding node-gyp errors: npmjs.com/package/bcrypt

    – 




  • @mike-pomax-kamermans: yes but i cannot understand the log

    – 

  • I have npm installed in my system and bycrypt is installed by one of my teammate so I have zero idea about why is this happening. Can you tell me how should I approach with this?

    – 




  • My bad, its the version of node that does not aligning with npm

    – 

Leave a Comment