Npm install problem when deploying to the server

Asked

Viewed 37 times

0

I developed a site using Vue and Node, both fully functional on my machine, when hosting the backend on the web server (I used Kings host) and trying to run npm install to install the dependencies gave the following error: "Node-Gyp error: not found: make" The server OS is hundreds. I asked the technical service to check the make installation, but they verified that it is installed. I cannot find any satisfactory answer to the question.

  • This might help: https://stackoverflow.com/a/31032594/9101590

  • I’m not sure what happened, but the problem was fixed when I regenerated package.json in the default settings "npm init -y", copied the dependencies and gave an "npm i" to generate package-lock.json and replace both on the server, when I ran "npm i" again ssh went all right. But thanks for your help!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.