Category "npm"

Use of @ symbol in Node module names [duplicate]

I'm looking at some code from a coworker wrote and she's using the @ symbol in require statements. This is the first line of one of these file

Why is npm publish telling me the package doesn't exist?

I'm trying to upload an npm package to a GitLab registry for the first time. I set the scope and the npm config entries according to the documentation, but when

What's the difference between dependencies, devDependencies and peerDependencies in npm package.json file?

This documentation answers my question very poorly. I didn't understand those explanations. Can someone say in simpler words? Maybe with examples if it's hard t

How to use npm modules in browser? is possible to use them even in local (PC)?

I'm new to npm module and node.js so it is really difficult to me. I have a js code whit many points and for each one of them I want to get the nearest city. To

package.json and remote git repository

In my package.json I have defined a GitHub repo as a dependency. "dependencies": { "react": "^16.3.0-alpha.1", "react-native": "0.54.0-rc.3", "re

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree in react

I am doing a mern project in that I used the following command npm i react-router-dom axios react-paypal-express-checkout In that I faced the following error np

Why npx create-react-app is showing "the project was bootstrapped with an old unsupported version of tools"?

I recently switched to Ubuntu, whenever I create react app it's giving me this note, and the app it's creating is a class component. ankit@gram:~/Documents/Deve

How to remove folder with npm before build

I've got a scripts "build": "rimraf dist webpack --progress --config webpack/prod.js", But actually,it removed not dist but all file inside webpack folder. But

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree in react

I am doing a mern project in that I used the following command npm i react-router-dom axios react-paypal-express-checkout In that I faced the following error np

Screenshare in Agora Angular 8

I am trying to integrate Agora in Angular 8 application. Successfully, I am able to join and leave video call, now I am trying to integrate screen share which I

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