Category "npm"

npm install won't install devDependencies

On windows for some reason when I run npm install it won't install devDependencies. AFAIK it should. If I run npm install --dev devDependencies are installed. I

NPM package cannot be used as a JSX Component - Type errors

Ive been getting these strange type errors on my typescript project for certain packages. Ex: 'TimeAgo' cannot be used as a JSX component. Its instance type '

Should the package-lock.json file be added to .gitignore? [duplicate]

To lock the versions of dependencies that are installed over a project, the command npm install creates a file called package-lock.json. This

React, different env files with create-react-app

I am trying to set up different environment files in a React project (using create-react-app). I following the official documentation but I am getting an error:

How can i implement an NPM compatible package registry from scratch? [closed]

I would like to implement my own NPM compatible package registry, like 'github packages'. Where can i find documentation of how this is done?

TypeError: Failed to load plugin 'jest' declared in '.eslintrc': Class extends value undefined is not a constructor or null

I was updating react-scripts to latest version i.e. 5.0.0 and started seeing above error. One article suggested to upgrade @typescript-eslint to version ^5.0.0

Deploy error Cloud Functions - Firebase Deploy

Error returning when executing the firebase deploy command. I tried some configuration options, but none worked. Error Firebase Deploy === Deploying to '###'...

Run mocha excluding paths

I have this (in gulpfile.js): var gulp = require("gulp"); var mocha = require("gulp-mocha"); gulp.task("test", function() { gulp .src(["./**/*_test

How to substitute sources for browser bundle with Rollup?

Using rollup is it possible to replace a specific source by another source in a NPM package during a browser bundle? Note this source is dynamically imported vi

NPM install fails with node-gyp

We are having problems running "npm install" on our project. A certain file cannot be found : fatal error C1083: Cannot open include file: 'windows.h' It app

How to install older version of node.js on Windows?

I need to install node.js of version 4.0.0 I tried this: npm install -g [email protected] But I got this message: npm is not recognized as an internal or external c

Installing ganache in power shell and ran into NPM Err

I am trying to install ganache to my power shell. I rand npm install ganache --global I ran into the following error: PS C:\Users\Chetachi Ugwu-Ojobe\Documents\

Google Cloud Functions error: "Cannot find module 'sharp'" but it's in my package.json

I am trying to deploy a function to Google Cloud Functions. I based it on their ImageMagick tutorial. Every time, the function fails to deploy because it reache

Google Cloud Functions error: "Cannot find module 'sharp'" but it's in my package.json

I am trying to deploy a function to Google Cloud Functions. I based it on their ImageMagick tutorial. Every time, the function fails to deploy because it reache

React Native -- Could not determine the dependencies of task ':app:mergeDebugAssets'

I'm trying to run my project with the npm run android command and it throws this error for me: info Running jetifier to migrate libraries to AndroidX. You can d

Issue with Material UI Icons npm installation : unable to resolve dependency tree

I was trying to install Material UI Icons in my Netflix-Clone React.js project with npm, but I got the following error - PS D:\REACT Projects\netflix> npm i

NPM Install Error:Unexpected end of JSON input while parsing near '...nt-webpack-plugin":"0'

When creating a new Angular 5 project: node version: 8.9.2 npm version: 5.5.1 My Command is: npm install -g @angular/cli The Error is: npm ERR! **Unexpected en

Error running install script for optional dependency ~/iltorb: Command failed

I need to setup a React project for which I want to install some Node dependencies. I ran yarn and got some errors; initially I thought the issue may relate to

NPM standard-version patch version problem

I'm trying to use standard-version in my javascript project. I added the release script to my package.json: "scripts": { ... "release": "standard-versio

How do I install node-sass on MacOSX M1?

I have an error with node-sass when trying to do a yarn on my M1 MacBook. I have this error : error /Users/antoinekurka/Documents/Freelance/Projets/NL/NextLevel