Questions tagged [npm]

npm is a package manager for the JavaScript programming language.

94 questions
45
votes
10 answers

How to fix `listen EACCES: permission denied` on any port

Has anyone experienced something liked this with node: I was running Angular, my Windows crashed and restarted and now when I try ng serve I'm getting: Error: listen EACCES: permission denied 127.0.0.1:4200 at Server.setupListenHandle [as…
15
votes
2 answers

How to search the DNF package manager for all available versions of a package?

What I want to know is how to search for all available versions of a particular package. It might help to understand my situation to understand exactly what I want to do. I develop software for clients using Node.js, npm, TypeScript, JavaScript,…
13
votes
1 answer

How to pass node parameters such as '--trace-deprecation' in npm scripts

I am a bit ashamed that I cannot find a good solution to this myself, but alas. Using npm we generally have a package.json file with a scripts segement for storing the tasks we want our toolchain to execute routinely, e.g.: "scripts": { "build":…
Zsar
  • 537
8
votes
1 answer

Is UNABLE_TO_GET_ISSUER_CERT_LOCALLY a firewall/company policy issue?

I'm working at a company that uses a firewall for internal users. When I try to install npm libraries I get this error message C:\Users\me\source\repos\webpage [(1_0_0)]> npm install -g puppeteer npm ERR! code 1 npm ERR! path…
8
votes
2 answers

Getting "Command not found" for global node packages

I've installed fkill globally by doing npm i -g fkill. I can see it installed when I do npm list. It shows only fkill as installed globally when I run npm list -g --depth=0. However when I run fkill I get "command not found". Next I ran "npm get…
aboutros
  • 139
7
votes
4 answers

Can't update npm to newest version on Ubuntu

First, I install npm sudo apt-get install -y npm Which installs npm version 3.5.2. Then I try to update it to newest version and it fails. Could not find a proper solution for this. sudo npm install npm@latest -g ▌…
6
votes
1 answer

visual studio code: how can i launch a command to a new terminal from a command

I want to run two concurrent commands using npm run in visual studio code, each one in a separate terminal tab in vscode. I tried doing this: start 'command a' && start 'command b' but that just opened them in two different cmd windows I want them…
Remot H
  • 61
6
votes
0 answers

Avoiding the `npm login` (`npm adduser') email prompt in npm & jFrog artifactory

When I do npm login (alias of npm adduser) I ALWAYS get prompted for my email address. Username: ... Password: ... Email: (this IS public) ... This is obnoxious. I've done npm config -g set email ... and confirmed that it sticks. I've confirmed…
4
votes
1 answer

Validating NPM Package Integrity

I'm being tasked to validate the integrity of my downloads from npm by our IT/Security department. I'm a programmer and while I understand at a top level what performing a sha checksum is, I'm having trouble figuring out how to do that on my NPM…
4
votes
3 answers

How to prevent npm from installing packages in home directory?

Because sometimes with my dumb mind, I installed npm packages for a project and realized after that I am still on my home directory. Forgot to change directory. Is there way to prevent it or will stop and show an error that I am still on my home…
zer09
  • 191
3
votes
1 answer

how to fix npm issue on wsl

when I call any of the below commands npm npm start npm run start I get this /usr/bin/env: ‘bash\r’: No such file or directory
X3R0
  • 205
3
votes
1 answer

Dependency Xvfb missing error on npm run

On running the command npm run test on ubuntu WSL-2 Windows 11. I get the following error: account-management-fullstack-level-2@1.0.0 test cypress run It looks like this is your first time using Cypress: 9.7.0 Your system is missing the dependency:…
nicku
  • 153
3
votes
0 answers

Finding .npm debug logs in Azure DevOps Pipeline

I have an existing build pipeline for a Vue web app that has worked flawlessly for over a year now up until today. I'm not a devops guy so I don't understand it 100% and got thrown into this, but here is the background of it. It's a CI process built…
CLosee
  • 31
3
votes
3 answers

'npm' is not recognized as an internal or external command in jenkins only

EDIT: if any one else will have this problem. The file was cmd, so calling npm.cmd fixed the problem. I nee to preform : npm run build It's a part of a Jenkins deploy. I have created a batch file that preform all the npm actions. When I run the…
matisa
  • 143
2
votes
1 answer

Can't use terminal, I keep getting "zsh: command not found: npm" even after an OS re-install

I don't remember what I had done, but every time I attempt to run a command (npm install -g gulp) in terminal, it returns a zsh: command not found: npm. This is a command I previously had no issue executing before. I performed a clean install of OSX…
1
2 3 4 5 6 7