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...
- Modified
- 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...
- Modified
- 6 Aug at 09:36
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
- Modified
- 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 ...
- Modified
- 28 Dec at 12:45
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
- Modified
- 1 Jul at 15:46
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...
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...
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...
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...
- Modified
- 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...
- Modified
- 17 Feb at 10:3
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...
- Modified
- 11 Jan at 07:13
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....
- Modified
- 9 Apr at 16:35
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...
- Modified
- 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...
- Modified
- 20 Nov at 08:56
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...
- Modified
- 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 ```...
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...
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...
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...
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...
- Modified
- 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...
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...
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...
- Modified
- 11 Aug at 09:28