Encountering issues while attempting to run npm install following the update of the node version to 14

Recently, I have upgraded both my node and npm versions. The current versions are:

Node: 14.15.4 Npm: 8.3.0

In my package.json file, the dependencies and devDependencies are as follows:

"dependencies": {
    "bootstrap": "^4.3.1",
    "jquery": "^3.6.0",
    "popper.js": "^1.15.0"
  },
  "devDependencies": {
    "gulp": "^4.0.2",
    "del": "^5.1.0",
    "gulp-concat": "^2.6.1",
    "gulp-ng-annotate": "^2.0.0",
    "gulp-plumber": "^1.1.1",
    "gulp-sass": "^4.0.2",
    "gulp-sourcemaps": "^2.6.5",
    "gulp-uglify": "^3.0.2",
    "sshpk": "^1.13.1"
  },
  "-vs-binding": {
    "AfterBuild": [
      "install"
    ]
  }

However, when I attempt to run npm-install, an error occurs with this message

https://i.stack.imgur.com/wbq95.png

The log indicates the following:

> 3078 verbose stack Error: spawn bash ENOENT 3078 verbose stack     at
> Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
> 3078 verbose stack     at onErrorNT (internal/child_process.js:465:16)
> 3078 verbose stack     at processTicksAndRejections
> (internal/process/task_queues.js:80:21) 3079 verbose pkgid
> <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="315f5e55541c4250424271051f00051f00">[email protected]</a> 3080 verbose cwd
> D:\TeamCityBuildAgent2\work\b86263cf69dd6b40\Web 3081 verbose
> Windows_NT 6.3.9600 3082 verbose argv "C:\\Program
> Files\\nodejs\\node.exe"
> "C:\\Users\\chaudhrymohsin.ali\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js"
> "install" 3083 verbose node v14.15.5 3084 verbose npm  v8.3.0 3085
> error code ENOENT 3086 error syscall spawn bash 3087 error path
> D:\TeamCityBuildAgent2\work\b86263cf69dd6b40\Web\node_modules\node-sass
> 3088 error errno -4058 3089 error enoent spawn bash ENOENT 3090 error
> enoent This is related to npm not being able to find a file. 3090
> error enoent 3091 verbose exit -4058 3092 timing npm Completed in
> 32047ms 3093 verbose unfinished npm timer reify 1652985500999 3094
> verbose unfinished npm timer reify:build 1652985531192 3095 verbose
> unfinished npm timer build 1652985531194 3096 verbose unfinished npm
> timer build:deps 1652985531194 3097 verbose unfinished npm timer
> build:run:install 1652985531461 3098 verbose unfinished npm timer
> build:run:install:node_modules/node-sass 1652985531462 3099 verbose
> code -4058

If anyone has experienced this issue before, please share any insights on how to resolve it.

Answer №1

It is recommended to make use of the sass package over node-sass.

npm uninstall node-sass --save
npm install sass --save

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

Display information on the console from any location

I'm working on a Node.js project where I need to display text at specific locations, such as the top right corner. Is there a Node.js module available that can help me achieve this? Something like: var displayModule = require('display_module&ap ...

Encountering EADDRINUSE error in expressjs while working with node-webkit

I am trying to incorporate the sample socket.io chat application from the socket.io website into a nw.js application to create a standalone socket client and server. However, I encountered an error when starting nw.js: [5591:0222/143044:ERROR:nw_shell.cc( ...

Building an NPM package similar to [name]/[second_name]? The name must consist of URL-friendly characters. How should we include the "[second_name]" in this package?

Can anyone help me understand how to append a package name with something after the slash in NPM? For instance, when creating a package, you typically use: npm init and when specifying the name, it gives an error if I include a "/" character as it restri ...

Unable to locate the specified nested module during the import process

Imagine a scenario where we have two packages, namely package1 and package2. When package2 attempts to import the module from package1, an error is thrown stating that the module is not found. The import statement in question looks like this: import { ... ...

Saving flatlist item data upon pressing in a React Native app

Recently delving into the world of react native, I am eager to learn how to save the items from the flatlist upon pressing them and then showcasing them. Initially, I incorporated an Autocomplete view for selecting countries and subsequently exhibiting the ...

Is there a way for my React app to display a 404 error page for a non-existent document?

Hey there! I recently submitted my website to a search engine, but encountered an error stating "Your non-existing pages don't return status 404". I'm not sure how to go about returning this status. I've been trying to solve this issue, but ...

Pass an array from a script file in JavaScript to index.js within the Express framework

I've encountered a challenge in sending an array (or JSON object) from script.js to index.js, my express server file. I've explored various solutions such as passing the variable through an HTML file and then to another JavaScript file, utilizing ...

Executing functions and MongoDB queries within a setTimeout function in a Meteor application

While working on the server side, I am attempting to update a field within my Mongo collection using a callback function as a parameter in a setTimeout function in Meteor. The goal is to create a function that runs at regular intervals to clean up the data ...

having difficulty configuring the debugger

After configuring my vscode launch.json file with the necessary breakpoints in my step definition and attempting to debug the test, I encountered an error that prevented the debugger from opening. The contents of my launch.js file are as follows: { " ...

Sending a GET request within a POST request in Node.js to retrieve and return data

I am having trouble passing the get request answer to the post request. Can someone assist me, please? var app = require('express')(); var http = require('http').Server(app); var bodyParser = require('body-parser'); var reque ...

How can I prevent node_module from being included when using the include directive in tsconfig.json?

Many developers are excluding the node_modules folder in their tsconfig.json. I, on the other hand, am using the include directive with specific folder patterns. Do I really need to exclude node_modules? And what about third-party libraries that aren' ...

Using csv-parse to process data efficiently without the need for a repetitive

Currently, I am utilizing the csv-parse Node package for CSV string parsing purposes. According to the documentation, reading the parsed result can be done with code similar to this: const output = [] parse(` "1","2","3" "a","b","c" `) .on('reada ...

Encountering a 500 internal server error or receiving an error message stating "invalid value for stripe.confirmCardPayment

I'm currently working on implementing a payment component for my React app using Stripe for the first time. Despite following a tutorial closely, I keep encountering an internal server error or receiving an "invalid value for stripe.confirmCardPayment ...

What is the best way to connect a toArray function to an interface property?

Consider the following scenario: interface D { bar: string } interface B { C: Record<string, D> // ... additional properties here } const example: B = { C: { greeting: { bar: "hi" } } // ... additional properties here } Now I would like t ...

Express (generator) is failing to load custom scripts located in the public folder

I'm new to node and express and I'm facing a problem. I want to load a custom script.js from the public folder, but it's not loading. There are no errors in the console or anything in the network tab. When I try to access the URL localhost:3 ...

"Encountering errors when attempting to create a course with Active status using a service account through the Google Classroom API

I am utilizing googleapis in order to establish a classroom course using a service account. Everything runs smoothly when I do not specify the status, and the course is created with status: PROVISIONED. However, when I attempt to update the status to ACTI ...

Scheduling a job to run at a specific time and then again at regular intervals

I am attempting to send notifications to my users and need to check their states daily. I plan to use the agenda.js library for this purpose. In order to create a job that runs once and then repeats, I have written the following code: const job = await ...

Node.js Express

Here is a snippet of my code: const express = require('express'); const app = express(); const router = express.Router(); app.route('/') .get(function(req, res) { res.send('Hello World!'); }); app.route('/u ...

Resolve the upstream dependency conflict that occurs during the installation of ng-bootstrap/ng-bootstrap

Encountering an error while attempting to install npm install --save @ng-bootstrap/ng-bootstrap. Seeking assistance in resolving this issue. npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: <a ...

ESLint Troubles

Encountering an error when running ESLint despite trying Babel and eslint-parser. Looking for clarification on a particular file without any accompanying documentation. node_modules/eslint-plugin-jsdoc/dist/rules/informativeDocs.js:95 descriptionReport ...