Category "npm"

Every time I run npm I get this message - Class extends value undefined is not a constructor or null

"Class extends value undefined is not a constructor or null" comes up every time I run npm here's the screenshot

sh: 1: node-gyp-build: Permission denied and npm ERR! code ELIFECYCLE npm ERR! errno 126

Tried to run this on Ubuntu 18.04 x64. It used to work properly a day ago but it stopped out of nowhere. npm i simple-youtube-api I used to be able to install

sh: 1: node-gyp-build: Permission denied and npm ERR! code ELIFECYCLE npm ERR! errno 126

Tried to run this on Ubuntu 18.04 x64. It used to work properly a day ago but it stopped out of nowhere. npm i simple-youtube-api I used to be able to install

Appending .js extension on relative import statements during Typescript compilation (ES6 modules)

This seems to be a trivial problem, but it is not very obvious what settings/configurations need to be used to solve this issue. Here are the Hello World progra

NPM readme file showing up broken

I have this readme file. https://pastebin.com/ihH0SKF3 It is written in markdown, and there are code blocks in it Is there something wrong with my readme file

What is the "module" package.json field for?

I've seen some npm packages (vue for example) have a module field in their package.json. But module is not included in the package.json documentation - is this

React: Module not found: Can't resolve 'xmlhttprequest'

I'm getting an error when trying to build my React project: ./node_modules/ethers/utils/web.js Module not found: Can't resolve 'xmlhttprequest' in '/mnt/c/User

npm run cannot find module 'sass' after repeated reinstall attempts

Any call to npm run produces this error: $ npm run dev > @ dev /project > npm run development > @ development /project > cross-env NODE_ENV=deve

Angular - An unhandled exception occurred: spawn UNKNOWN

In Angular-13 project I have a project that has been working very fine. But suddenly, when I did ng serve I got this error: An unhandled exception occurred: spa

How I can skip installing optional dependencies by 'npm ci'?

How I can skip installing optional dependencies from package-lock.json by npm ci?

Solidity - Solidity code to Input JSON Description

I want to compile my ethereum HelloWorld.sol smart contract. In all the tutorials is that you do it like this: var solc = require('solc'); var compiledContract

Getting ReactJS/TypeScript to work with new clean MVC5 project

I've already tried nearly all available tutorials to get a simple MVC5 project to run using TypeScript and ReactJS. Note: I've created the projects from scratch

Module Not Found: Can't resolve 'http2' when importing firebase-admin

Failed to compile ./node_modules/@grpc/grpc-js/build/src/channel.js Module not found: Can't resolve 'http2' in '/Users/Michael/Development/Proje

Express module.js:550 throw err; ^ Cannot find module

I'm trying to initialize a simple express app with the following code: const express = require('express'); const app = express() const bodyParser = require('bo

EBADPLATFORM error when installing any npm package into a fresh Nextjs app

Working with a team on a new project -- we have a fresh Nextjs app stood up in our remote repo which another team member has cloned and is working on locally. S

Debugging an electron app in Visual Studio Code

Could I please ask for help with the following? I have an electron app (basically the quick start app so very very simple). I am viewing the code with Visual St

gyp ERR! stack Error: Command failed: python -c import sys; print "%s.%s.%s" % sys.version_info[:3]

I'm trying to npm install in a Vue project, and even if I just ran vue create (name) it gives me this err: npm ERR! gyp verb check python checking for Python ex

npm ERR! code ENOENT, npm ERR! errno 34

This is my start script for a React application. "scripts": { "prestart": "babel-node tools/startMessage.js", "start": "npm-run-all --parallel test:wat

NPM warning: 'unsupported engine'

I entered the command npm install -D tailwind css postcss autoprefixer vite in VS-Code. My environment is: NPM version: 8.1.2 Node.js version: 16.13.1 Which res

Different node package versions in different branches of app in package.json?

The scenario: We have several similar but customized Node applications, all of which include our own common library/package which we include as a dependency in