tagged [npm]

NPM ERR Code E401: Unable to authenticate, need: Bearer authorization

NPM ERR Code E401: Unable to authenticate, need: Bearer authorization I downloaded a NodeJS application from GitHub and facing the following error when executing npm install. ``` npm ERR! code E401 np...

6 Jan at 06:17

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

What's the difference between dependencies, devDependencies and peerDependencies in npm package.json file? [This documentation](https://docs.npmjs.com/files/package.json) answers my question very poor...

How come npm install doesn't work on git bash

How come npm install doesn't work on git bash I have git bash open and I type in `npm install` and then it returns: I don't understand, because I have `node.js` command prompt and when I type in `npm ...

10 Mar at 12:21

npm install ->Failed at the node-sass@4.5.0 postinstall script

npm install ->Failed at the node-sass@4.5.0 postinstall script I'm trying to do `npm install` and an error appears : I tried to delete `node_modules` and then reinstall it, same error appears. what wi...

ERROR in The Angular Compiler requires TypeScript >=3.1.1 and <3.2.0 but 3.2.1 was found instead

ERROR in The Angular Compiler requires TypeScript >=3.1.1 and ERROR in The Angular Compiler requires TypeScript >=3.1.1 and

21 Dec at 19:53

Purpose of installing Twitter Bootstrap through npm?

Purpose of installing Twitter Bootstrap through npm? Question 1: What exactly is the purpose of installing Twitter Bootstrap through npm? I thought npm was meant for server side modules. Is it faster ...

Is there a way to get version from package.json in nodejs code?

Is there a way to get version from package.json in nodejs code? Is there a way to get the version set in `package.json` in a nodejs app? I would want something like this

How to set custom location for local installation of npm package?

How to set custom location for local installation of npm package? Is it possible to specify a custom package destination for `npm install`, either through a command flag or environment variable? By de...

5 Oct at 12:54

npx command not found

npx command not found I am working with webpack and I need to execute `./node_modules/webpack/bin/webpack.js` using `npx`. `npx webpack` would run the webpack binary (`./node_modules/webpack/bin/webpa...

27 Aug at 19:23

Why isn't Node Version Manager (NVM) recognized on Windows?

Why isn't Node Version Manager (NVM) recognized on Windows? I am trying to downgrade my version of node I ran: and I exported the bin folder to my Windows path variable, but I still get: > 'nvm' is no...

9 Mar at 09:13

You seem to not be depending on "@angular/core". This is an error

You seem to not be depending on "@angular/core". This is an error I want to create an angular 2 App with angular cli I have written in the cmd: > npm install angular-cli -g then: > ng firstngapp but i...

13 Jul at 12:55

What does npm install --legacy-peer-deps do exactly? When is it recommended / What's a potential use case?

What does npm install --legacy-peer-deps do exactly? When is it recommended / What's a potential use case? Just ran into this error: ``` npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve depe...

What's the difference between tilde(~) and caret(^) in package.json?

What's the difference between tilde(~) and caret(^) in package.json? After I upgraded to the latest stable `node` and `npm`, I tried `npm install moment --save`. It saves the entry in the `package.jso...

Message "the term 'ng' is not recognized as the name of a cmdlet"

Message "the term 'ng' is not recognized as the name of a cmdlet" Today, while working through some basic AngularJS introduction, I ran into a problem. I opened PowerShell to get going on the project....

Find unused npm packages in package.json

Find unused npm packages in package.json Is there a way to determine if you have packages in your `package.json` file that are no longer needed? For instance, when trying out a package and later comme...

20 Oct at 13:10

Can I execute npm commands directly from the visual studio

Can I execute npm commands directly from the visual studio Can I execute npm commands (e.g. npm init, npm install) directly from Visual Studio 2017 on Asp.Net Core 2.0 project? May be from command lin...

How to use private Github repo as npm dependency

How to use private Github repo as npm dependency How do I list a private Github repo as a `"dependency"` in `package.json`? I tried [npm's Github URLs](https://docs.npmjs.com/files/package.json#github...

25 Feb at 20:10

How to stop app that node.js express 'npm start'

How to stop app that node.js express 'npm start' You build node.js app with express v4.x then start your app by . My question is how to stop the app? Is there ? to include the error when implement ```...

25 Apr at 15:35

Is there any way to configure multiple registries in a single npmrc file

Is there any way to configure multiple registries in a single npmrc file Here is my problem. We have a private NPM registry which only works in VPN. I would like to have a fallback registry [https://r...

5 Jul at 08:30

How do I correctly upgrade angular 2 (npm) to the latest version?

How do I correctly upgrade angular 2 (npm) to the latest version? Recently I started Angular 2 tutorial at [https://angular.io/docs/ts/latest/tutorial/](https://angular.io/docs/ts/latest/tutorial/). a...

19 Sep at 06:3

How do I add comments to package.json for npm install?

How do I add comments to package.json for npm install? I've got a simple package.json file and I want to add a comment. Is there a way to do this, or are there any hacks to make this work? ``` { "nam...

7 Aug at 05:26

Install specific branch from github using Npm

Install specific branch from github using Npm I would like to install bootstrap-loader from github in my project using npm Currently they are maintaining two version of this project which are comaptib...

23 Aug at 21:43

How to fix npm vulnerabilities manually?

How to fix npm vulnerabilities manually? When I run `npm install` it says `found 33 vulnerabilities (2 low, 31 moderate) run `npm audit fix` to fix them, or `npm audit` for details`. However, `npm aud...

14 Jul at 03:11

Change default global installation directory for node.js modules in Windows?

Change default global installation directory for node.js modules in Windows? In my windows installation `PATH` includes `C:\Program Files\nodejs`, where executable `node.exe` is. I'm able to launch `n...

9 Nov at 09:49

Unable to resolve dependency tree error when installing npm packages

Unable to resolve dependency tree error when installing npm packages When trying to install the npm packages using `npm i` command, I am getting the following exception: [](https://i.stack.imgur.com/x...

11 Aug at 09:28