As I attempted to set up sb-admin-bs4-angular2-master, an application built with Node.js, I encountered an error message while running the npm install command

view image details here

After running npm install -g ts-node, I proceeded with npm install only to encounter an error that left me clueless. Subsequently, when attempting npm start, a series of errors related to the gulp server or similar issues emerged.

A configuration error arose during the build process at C:\Users\Raheel\Downloads\SB-Admin-BS4-Angular-2-master\SB-Admin-BS4-Angular-2-master\node_modules\c3\node_modules\d3\node_modules\jsdom\node_modules\contextify>. The Python executable version detected (v3.5.1) was not compatible with gyp's requirements. To resolve this, either specify a compatible Python version using the --python switch or ensure python is >= v2.5.0 & < 3.0.0.
     
Additionally, several commands were attempted but encountered various errors, ultimately resulting in failure to complete the installation script node-gyp rebuild. This issue should be addressed with the contextify package developer rather than npm directly.

For further details and support requests, refer to the npm-debug.log file located at: 
C:\Users\Raheel\Downloads\SB-Admin-BS4-Angular-2-master\SB-Admin-BS4-Angular-2-master\npm-debug.log

C:\Users\Raheel\Downloads\SB-Admin-BS4-Angular-2-master\SB-Admin-BS4-Angular-2-m
aster>

Answer №1

Upon initial inspection, you will find the following message:

Error: The Python executable path "C:\Users\Raheel\AppData\Local\Programs\Python\Python35-32\python.EXE" belongs to version 3.5.1, which is incompatible with gyp.

It appears that npm requires Python version 2.5, as it may not be compatible with Python 3.x.

To resolve this issue, a Python version between 2.5 and less than 3.0 is recommended. Refer to npm documentation for additional guidance.

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

encountering difficulties while trying to install packages using npm

I encountered some issues while setting up a react-app and attempted to resolve them by deleting /node-modules and reinstalling, but the problems persist. I'm using Ubuntu as my operating system. Can someone assist me with this? Below is the error log ...

Ways to obtain a SHA1 hash for a blob block in Azure storage using Node.js without the need to download the file

Can someone assist me with code sample for file validation using sha-1 hash in Node.js? I am looking to obtain the sha-1 hash value without downloading the block from azure storageblob. // Example of uploading BlockBlob using @azure/storage-blob npm bloc ...

Encountered a problem while trying to install angular-cli on a Windows 10

While attempting to set up angular-cli on my Windows 10 device, I used npm install -g @angular/cli. However, an error popped up as follows: C:\Users\kumar>npm install -g @angular/cli npm ERR! Unexpected end of JSON input while parsing near &a ...

What is the best way to set up individual databases for each user upon registering using Node.js, Express, MongoDB, and Mongoose?

Upon registration, my goal is to set up an individual isolated database for each user. This way, only the authenticated user will have access to their own database and can freely edit, delete, update, and create posts within it. Thank you. ...

Why am I not receiving the expected feedback after submitting a request for a specific parameter in a Node.js and Express Router REST API?

Developed a Node module utilizing the Express router to facilitate the routes for the dishes REST API. Index.js file: const express = require('express'); const http = require('http'); const morgan = require('morgan'); const b ...

Moving away from the ng-route and transitioning to the ui-router for AngularJS navigation

I'm just starting out with AngularJS and I'm a bit confused about how to implement angularjs ui-router in the following scenario: The scenario involves two main sections. The first section is the Homepage, which includes login and sign-up views, ...

Error in Node.js: Attempting to access the property 'nick' of an undefined object

The Problem There seems to be an issue when combining the query and variable or using a "fake PDO" style. The Code if(page == "profile"){ var user = "Failed to load."; con.query('SELECT * FROM users WHERE id = &ap ...

Is it feasible to retrieve two sets of AWS credentials from a JSON file?

  I am working on developing a node.js express application and I require the ability to access two different sets of credentials depending on the user’s context. Currently, I have configured the app to retrieve one set of credentials from a specific co ...

Setting up KeystoneJS Application with Let's Encrypt and Heroku

I am utilizing the letsencrypt feature of KeystoneJS to conveniently set up and manage HTTPS details for my project. I would like to configure this to function with a custom domain on Heroku. I have followed a previous guide to successfully configure the H ...

What could be causing some of my images not to appear on the screen?

I am encountering an issue while using Express.js with Jade. I have 6 images, but 2 of them are not displaying on the page. Even though I can access all 6 images at `local:3000/images/a.png`, two of them are not visible on the webpage. Below is a snippet o ...

The successful execution of one promise determines the outcome of the $q.all promise

I am currently dealing with a situation where I have three nested promises that I need to refactor into a single $q.all call. The current structure of the code looks like this: ds.saveData(data).then(function (result1){ someOtherVar = result1.Id; ...

Is Implementing a Promise for Preprocessing in NodeJS Worth It?

Looking to achieve the following using NodeJS + Express: Client sends a post request with JSON document data={text: "I love Stackoverflow", shouldPreprocess: <true or false>}; Need to call an external WebSocket service for sentiment analysis on the ...

Having trouble with npm installation: "npm error! code ERR_SSL_WRONG_VERSION_NUMBER"

Encountering issues while trying to install modules for my react app. When running npm i, the following warnings and errors are displayed: npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generate ...

Error message while attempting to install Apache Cordova: cordova command not located

I'm facing some challenges while attempting to set up and activate apache cordova on my computer using the command line instructions provided here: After successfully installing nodejs (v0.10.15) and npm (1.2.18), I encountered a partial success with ...

What steps can be taken to resolve the vulnerability in webpack-pwa-manifest?

Looking for solutions to address the [email protected] and minimist vulnerability. I attempted removing node/modules and package-lock.json, followed by a fresh npm installation, but the issue persists. Any suggestions would be greatly appreciated. Scr ...

What is the best way to ensure the user document is saved when a new post is being created

Having resolved previous issues, my focus now is on populating the user document with posts. Here is the current structure of the user document: { "posts": [], "_id": "5e75cf827ef14514f69c6714", "username": "di ...

How to Send a PDF Attachment using Node.js and SendGrid

For my Node.js application, I have been utilizing SendGrid to send emails. However, every time I attempt to attach a pdf file, the attached pdf ends up being unreadable. I have attempted the following: fs.readFile('public_html/img/Report.pdf',fu ...

Updates to $scope are not reflecting in the application

My input includes a datalist that is populated by an angular get request as the page loads. <input list="data" /> <datalist id="data"> <option ng-repeat="item in items" value="{{item.data}}"> </datalist> The $http call is straig ...

Volta revolutionizing the use of global npm packages

I recently experimented with Volta tools on a pre-existing Node project and found them to be very useful :) However, I'm encountering an issue with using global packages. For example, I installed the gitmoji-cli package globally using npm like so: n ...

Persistent hover state remains on buttons following a click event

In my current project, I am dealing with a form that has two distinct states: editing and visible. When the user clicks on an icon to edit the form, two buttons appear at the bottom - one for saving changes and one for canceling. Upon clicking either of th ...