Issue installing npm. What exactly is 'make'?

As a newcomer, you often have silly questions. I made sure to search Google and Stack Overflow before coming here. While there is a similar question posted, there doesn't seem to be a clear answer: npm failed to install time with make not found error

Upon running 'npm install', I encountered an error related to 'make'. I am puzzled about what exactly 'make' is and what I need to do to install it. My operating system is nodejs on SmartOS.

<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6002031219101420504e564e50">[email protected]</a> install /home/scotch/node_modules/bcrypt
node-gyp rebuild
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at F (/opt/local/lib/node_modules/npm/node_modules/which/which.js:43:28)
gyp ERR! stack at E (/opt/local/lib/node_modules/npm/node_modules/which/which.js:46:29)
gyp ERR! stack at /opt/local/lib/node_modules/npm/node_modules/which/which.js:57:16
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System SunOS 5.11
gyp ERR! command "node" "/opt/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/scotch/node_modules/bcrypt
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok

Answer №1

After delving into the depths of this issue, I discovered that npm encountered a make not found error while attempting to install time.

The hurdle presented itself during the installation process of the mqtt package.

make serves as a crucial build tool for executing commands through the command line.

To successfully resolve this setback:

If operating on CENTOS 7 or RHEL 7:

Execute the following command: yum install -y make gcc*

In my case, troubleshooting on Ubuntu was remedied with the following command:

$ sudo apt-get install build-essential

Additionally, although not confirmed necessary, I opted to remove the failed packages before proceeding with reinstallation.

Answer №2

Do you know what 'make' is? Check out this link: http://en.wikipedia.org/wiki/Make_(software)

If you're working on SmartOS, use the command pkgin in gmake to install.

For installing bcrypt, simply reboot your machine to continue the process.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

When I use `next(err)` in Express, the subsequent middleware or tick does not execute as expected

One interesting middleware is capable of returning a 405 error if the requested URL matches any other routes within the same router object. When a match is found, it verifies if there is a corresponding HTTP verb; if not, it sets a flag to true and trigger ...

Contrasting outcomes when processing identical file in node and python

I've been attempting to access the contents of the genesis.block file provided in the Hyperledger Fabric Node SDK through Python. However, every time I try to read the file using Python with: data = open("twoorgs.genesis.block").read() The value sto ...

Error Message: Nodemon Node Error - Module 'C:Program FilesGit ode_modules odemonin odemon.js' Not Found

Currently diving into the world of NodeJS. Running a Windows 7 64 Bit setup. Node.js and NPM are up and running smoothly. Nodemon is also installed locally and globally. When trying to execute the command: "nodemon server.js" or simply "nodemon" An er ...

What causes the error "Why am I receiving a "Cannot read property 'length' of undefined" when looping through a pug template?

Currently, I am in the process of developing a project using Node and Express. My objective is to have the home page display signup and login links in the nav bar when the user is not logged in. Initially, everything seemed to be working fine, and I was ab ...

Having trouble locating the web element within a div popup while utilizing Node.js and WebdriverIO

I need assistance with a seemingly simple task. I am currently learning webdriverjs and attempted to write a short code to register for an account on the FitBit website at URL: www.fitbit.com/signup. After entering my email and password, a popup appears as ...

Having trouble with res.redirect not working after the page has been rendered with data?

I have a basic forget password feature set up, where users can request a password change and receive an email with a token. Clicking the link in the email will redirect them to a page where they can input their new password. When I click on the email link ...

Is it possible to add a sub-document to a specific parent document by using the parent's ID and providing the name:value pair for

Is there a way to update an embedded document by finding the parent using the _id? I need help with the correct syntax for locating the parent by _id and the sub-document by the username field: Models.Message.findById(req.params.message_id, { "to.usernam ...

After successfully deploying on Netlify, ReactDOM.createRoot() does not insert the #root div

Currently experiencing an issue while attempting to deploy a React application on Netlify. The app functions correctly in the local environment, and the deployment process completes without errors. However, upon previewing the site, the <App> compone ...

Having trouble with my React component timer not functioning properly

How can I utilize the Header Component as a Clock timer for my webpage to update every second? Despite searching on Google, I couldn't find examples that match my requirements. Why is the tick() function not functioning properly even though there are ...

Error encountered during the building of a Java project using Gradle

I ran into an issue with Git Bash error output (build failed). Despite attempting to resolve it by installing Python as suggested, setting the Python environment variable in IntelliJ, and following other recommendations, I still encounter the same build ...

Error in node: nodenv could not locate any specified version for use

Following a successful installation of Node, I encountered the following error message: $ npm nodenv: couldn't find any version specified for use $ node nodenv: couldn't find any version specified for use Does anyone have insight into where thi ...

Retrieving data from a file results in receiving blank strings

Struggling to access the data within a directory of files, I've encountered an issue where the data doesn't seem to be read correctly or at all. Even though there is content when opening the files individually, when attempting to examine their co ...

There appears to be an issue with Mongoose Unique not functioning properly, as it is allowing

Below is the complete code snippet I am using to validate user data: import { Schema, model } from 'mongoose'; import { User } from './user.interface'; const userSchema = new Schema<User>({ id: { type: Number, required: ...

Guide to removing a Firebase Storage directory using a Firebase Cloud Function?

I'm having trouble finding the deleteFiles() method and the DeleteFilesOptions argument in the Firebase API reference. My IDE is indicating that this method requires an optional argument, but I can't seem to locate any information on this type. I ...

Node.js uses Firebase Admin to send notifications to a different service account

Exploring two different routes in nodejs. Let's start with one.js var admin = require("firebase-admin"); var topic = "/topics/news"; var serviceAccount = require("/path/serice-1-firebase-adminsdk.json"); var firebase = admin.initializeApp({ cred ...

Experiencing issues with running npm commands on Plesk Onyx utilizing Node.js via SSH

After installing node.js on Plesk Onyx through the Plesk extension manager, I attempted to install the node.js driver for MongoDB using npm via SSH. However, I'm encountering issues with npm commands not being recognized. I can confirm that Node.js i ...

What is the best way to extract specific data from a CSV file and incorporate it into a JSON object using csvparser?

I'm relatively new to nodejs and am working on a project where I need to extract data from a CSV file containing COVID information for various countries and US states. My goal is to filter out only the US states from this data and display it in a tabl ...

Include all the routes from the ./routes directory into the middleware stack

Currently, I am utilizing app.use() and require() individually for every route within my routes directory to incorporate them into the middleware stack (using Express). app.use('/', require('./routes/index')); app.use('/users&apos ...

API Gateway - ALB: Certificate altnames do not match the Hostname/IP provided

At the moment, my system configuration is as follows: API Gateway --- ALB --- ECS Cluster --- NodeJS Applications | -- Lambda In addition, I have assigned a custom domain name to API Gateway (UPDATE: I tried using the defau ...

"Using Node.js Express 4.4 to efficiently upload files and store them in a dynamically

Looking for recommendations on the most efficient method to upload a file in node.js using express 4.4.1 and save it to a dynamically created directory? For example, like this: /uploads/john/image.png, uploads/mike/2.png ...