Questions tagged [npm]
npm is a package manager for the JavaScript programming language.
94
questions
44
votes
10
answers
152k
views
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....
8
votes
2
answers
45k
views
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 ...
7
votes
4
answers
9k
views
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 ...
7
votes
2
answers
16k
views
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 ...
7
votes
1
answer
8k
views
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 ...
6
votes
0
answers
1k
views
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 .....
5
votes
1
answer
4k
views
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 ...
4
votes
1
answer
22k
views
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
...
4
votes
1
answer
3k
views
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 ...
3
votes
1
answer
8k
views
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
3
votes
3
answers
2k
views
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 ...
3
votes
1
answer
5k
views
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:
[email protected] test
cypress run
It looks like this is your first time using ...
3
votes
0
answers
907
views
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 ...
2
votes
1
answer
1k
views
pacman -Syu error with npm ( conflicting files )
I just tried to run pacman -Syu command and encountered this error:
(417/417) sprawdzanie kluczy w bazie [############...
2
votes
2
answers
1k
views
How do I remove the error in vue create?
I am new to vuejs and vuetify. First I ran the command npm install @vue/cli -g. Then I ran the command vue create test. And I am getting this error:
C:\Users\Dell\AppData\Roaming\npm\node_modules\@...
2
votes
1
answer
1k
views
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 ...
2
votes
2
answers
11k
views
node Error: listen EACCES: permission denied ON ANY PORT [Windows]
Here is the code that have the issue with: link. Anyway I don't think the problem is in the code itself. There are a lot of articles on the internet about this issue but none of them helped so far. ...
2
votes
1
answer
1k
views
Bower -v: Segmentation fault (`core' dumped)
I'm trying to install bower on my Ubuntu 18.04.
That's what I have done by this time:
sudo snap install bower --classic
sudo npm install bower -g
By this time it should be installed, but when I run ...
2
votes
1
answer
10k
views
Node-gyp error on running npm install
Error on running npm install
C:\cygwin64\home\kjeeva\ANSYSDev\Licensing194\LicensingPortal\node_modules\strong-ursa>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\...
2
votes
3
answers
16k
views
'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 ...
2
votes
1
answer
6k
views
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://...
2
votes
1
answer
291
views
Secondary hard drive disappeared after executing npm install, Windows 10 WSL
Normally I am developing my apps under C:, which is a SSD. This time, because I expected the node_modules folder to be huge, I decided to use my secondary hard drive (D:, 2TB).
After cloning the repo, ...
2
votes
1
answer
3k
views
“npm config set prefix” fails on user owned directory in macOS Mojave
I am installing node on a clean macOS Mojave box using Homebrew. I am trying to set npm install directory in a user owned dir; the dir tools already exists and is owned by the user:
npm config set ...
2
votes
0
answers
1k
views
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 ...
2
votes
0
answers
307
views
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 ...
2
votes
1
answer
2k
views
npm (actually, yarn) not installing all package files, but only for a specific project
Before I go completely crazy, maybe someone has experienced a similar problem (otherwise, I guess I'll have to dive into the source...).
I have several packages on NPM. Usually I specify the "files" ...
2
votes
0
answers
1k
views
How to configure npm proxy for the companies Zscaler settings?
0
In my company I can't download the node modules via npm, because the connection is being refused. We use a Zscaler with a .pac config file. I tried to configure the proxy via various tutorials
...
1
vote
1
answer
59
views
What's up with all the 171 dependencies of `npm`?
$ sudo apt-get install npm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
gyp libjs-inherits ...
1
vote
1
answer
6k
views
how can i fix npm install issues?
hey i am having issues with npm install. I am getting errors. How can i fix it?
npm install
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN ...
1
vote
1
answer
115
views
How do package installers make packages available anywhere without adding them to the Environment Variables' path?
Example1:
When I install a package using a package manager such as the JavaScript package manager npm, the package immediately becomes available to run from any directory on any terminal:
$ npm ...
1
vote
1
answer
310
views
npm can't be found on hyper-v / ubuntu 20.04
I'm running Ubuntu 20.04 on Hyper-V with WSL2 and installed nodejs by doing this:
sudo apt-get install -y nodejs
When I did node -v I got v14.13.1.
When I do npm -v I got a "no such file or ...
1
vote
3
answers
6k
views
Error while installing Nodejs on Godaddy Shared Linux Hosting
I am installing Node.js on Godaddy Shared Linux Hosting by connecting to SSH via PuTTy. Getting Errors.
I ran 'curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash' ...
1
vote
1
answer
2k
views
EACCES: permission denied, unlink '/home/ashu/.vue-templates/webpack-simple/README.md
I have installed nodejs and npm using nvm. Then I tried installing vue-cli version2 globally. It asked me root permission to install vue-cli globally. When I am trying to install vue template, it is ...
1
vote
1
answer
283
views
In npm, why is there a directory with root priviliges set by default for global packages?
I am currently learning Angular and npm. Today I tried to do npm i -g @angular/cli on my Fedora, but instead having it installed, I saw in the terminal (I have shortened the message for convenience):
...
1
vote
1
answer
57
views
ISPconfig/Nginx/wordpress to nginx proxy manager | wordpress using permalinks/postname
I am migrating my wordpress site from Ispconfig/Apache to Ispconfig/Nginx and introducing Nginx proxy manager in the mix. The problem seems to be the following:
htaccess is not enabled in nginx
are ...
1
vote
0
answers
581
views
Access Denied Error: Node.js works, but npm commands fail with 'Access is denied' on Windows
I'm encountering an issue where Node.js seems to be working fine (as evidenced by running node app.js successfully), but npm commands are failing with an "Access is denied" error on my ...
1
vote
1
answer
662
views
Cannot run recent versions of Node.js in Vagrant box anymore
I like to do my dev work in Vagrant virtual machines to keep a clean environment.
Having recently updated Node.js to v18.18.0, I suddenly cannot run npm commands inside the guest any longer:
npm start:...
1
vote
1
answer
3k
views
run multiple npm script from another directories by writing only one command
I have application with frontend and backend folders. With structure like this.
application
├── frontend
│ └── src
│ └── build
│ └── package.json
└── backend
└── src
└── build
└── ...
1
vote
1
answer
3k
views
How do I install or use NPM in Windows Subsystem for Linux?
I have the following error when I try to run my node.js project:
ENV@ENV-L7490:/mnt/c/Users/ENV/source/Project$ npm i
: not foundram Files/nodejs/npm: 3:
: not foundram Files/nodejs/npm: 5:
/mnt/c/...
1
vote
0
answers
277
views
Installing NPM Package do not work inside Vagrant Ubuntu 18.04 LTS box
I am trying to install nodemon from npm inside my vagrant Ubuntu 18.04 LTS box using this command npm install --save-dev nodemon but i got error related to cannot find the file, i suspect that this is ...
1
vote
0
answers
3k
views
I cannot create a Node.JS Web App to be deployed on Azure
For the past week I've been trying to get Azure to deploy an accessible website with Node.JS. Let me re-count the steps I've done.
1) I go to Visual Studio, and I select the Basic Azure Node.js ...
1
vote
1
answer
912
views
node global npm packages broke somehow (mac)
So I have node installed together with npm. And used the official installer from the website. But when I install a package globally like "express" for example it won't be available in command line.
...
1
vote
0
answers
394
views
unable to install typescript getting below error
When trying to install typescript on the visual studio code I am getting the error below:
PS D:\POCProject> npm install -g typescript
npm WARN tar invalid entry
npm WARN tar invalid entry
npm ...
1
vote
1
answer
5k
views
Node/Npm are verified installed, but npm install throws node not found error in gitbash
I have verified both node and npm are installed:
console image
They are also working in other shells, including VSCode using Powershell. However when running npm install in GitBash, I'm getting this ...
1
vote
0
answers
850
views
BrowserslistError: Unknown browser query basedir=$(dirname "$(echo "$0" | sed -e 's`
It takes me lots of time doing uninstalling and reinstalling angular-cli but all of this is not luck it keeps giving me this error
**[ng] BrowserslistError: Unknown browser query `basedir=$(dirname "$...
1
vote
1
answer
7k
views
running dependencies with npm not working (event.js:174 throw er; // Unhandled 'error' event)
I recently just started getting back into web development and I had Node.js already installed on my computer. I was trying to run npm install -g live-server to work with npm's live server.
This is ...
1
vote
0
answers
748
views
Updating Nodejs from root and have a non root user sees it
I have a system (Ubuntu) with a root user and a node user. The node user is used to lunch Nodejs applications and it has no root privileges for security reasons. The current version of Nodejs is 6. To ...
1
vote
0
answers
3k
views
NPM install error code E502
I have a Node.js project that is working on my colleague. I recently swapped computers and git cloned this particular code.
I have a package.json in root level of the app and everytime I try to run ...
1
vote
0
answers
105
views
vue-hot-reload-api stopping serve from building
I have an app that i am trying to run on the vue/cli development server. I try to either run npm run serve or use vue ui then run it through that.
Every time i try to run it my command line stops at ...
1
vote
0
answers
179
views
Web3.js dist folder missing after installation
i am following a tutorial to learn how to create smart contract with ethereum and solidity. Now i have to install the web3.js package using npm and that's the syntax command i used:
npm install ...