Questions tagged [npm]

84 questions
41
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…
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 ▌…
user2340939
  • 183
  • 1
  • 6
6
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
  • 119
  • 1
  • 1
  • 3
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…
Jason Kleban
  • 901
  • 3
  • 11
  • 24
5
votes
0 answers

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
  • 221
  • 2
  • 7
5
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
  • 51
  • 2
3
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
  • 161
  • 7
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
  • 1
2
votes
1 answer

NGINX Proxy Manager cannot resolve locations

Please read Update below My setup: My goal: Access Heimdall at https://heimdall.myserver.lan instead of https://myserver.lan:8444/. My configuration: I've set up a freshly installed NPM at http://myserver.lan:8185/ which is a Docker container made…
kamikater
  • 51
  • 6
2
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…
Arthur Attout
  • 217
  • 1
  • 15
2
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
2
votes
1 answer

Using the output of a piped sed for the replacement value of a second sed

I am trying to get the version of a npm package, and use it to replace the value in another file. Specifically, I want to get the package.json version and use that to replace the wordpress style.css version. I'm able to successfully get the version…
Sparticuz
  • 23
  • 3
2
votes
0 answers

Install @AngularFire Error:The package that you are trying to add does not support schematics

I am trying to install @angular/fire using the ng add @angular/fire command. However, I keep getting the error: The package that you are trying to add does not support schematics. You can try using a different version of the package or contact the…
2
votes
0 answers

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…
2
votes
0 answers

error from node js or npm when I open Ubuntu terminal

I get this error every time I open a terminal and I also can get it any time I try some command. I tried to fix it by removing node and npm completely from computer but it still shows up. I checked for the "internal/modules/cjs/loader.js" file using…
Razvan Pavel
  • 133
  • 2
1
2 3 4 5 6