Questions tagged [npm]
66 questions
20
votes
1 answer
The following packages have unmet dependencies: nodejs : Conflicts: npm
I followed this gist https://gist.github.com/Goddard/5500157 to install nodejs and npm, but after running it neither node --version or npm --version could be ran, giving an error of command not found. I was able to uninstall nodejs, but had to go…

lumberjacked
- 377
- 1
- 4
- 9
9
votes
8 answers
Centos 7 Can't yum install npm
I'm trying to get nodejs and npm installed on centos 7
So first I did
rpm -i http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
to get the epel repository
Then I tried yum install nodejs. Which worked.
Then I tried…

Chris
- 91
- 1
- 1
- 3
5
votes
2 answers
npm install, but can't run
I'm a newbie to Node, but I've been trying to install some npm modules and after what seems like a successful install, I can't run the new app. I must have some basic config error, like a missing location in my PATH...
For example, running:
npm…

Scott
- 267
- 1
- 4
- 10
5
votes
3 answers
NodeJS React Systemd Service not working
I am trying to set up a systemd service for a simple react application. This application is hosted in /home/myuser/test. Both npm and node are in the PATH and hard linked to /usr/bin. All the files have permissions for the myuser:myuser user and…

Nissy A.W.
- 132
- 1
- 8
4
votes
0 answers
400 bad request from a proxy cache
So we have an nginx proxy cache that is used to maintain uptime even if npm goes down.
On occasion this server (noticeably once every few months) starts returning 400 bad request for every response for some specific package. I figured it was a…

Parris
- 329
- 3
- 16
4
votes
1 answer
Installing and configure docular
I'm trying to install and configure doculare package on node.js platform. I have started from the official documentation website grunt-docular.com.
After hundreds of tries, there was a problem in running grunt docular-server.
I think the problem in…

Muhamad Serawan
- 143
- 3
4
votes
1 answer
Using npm install as a MS-Windows system account
I have a node application running on Windows, which I want to be able to update automatically. When I run npm install -d as the Administrator account - it works fine, but when I try to run it through my automation software (that is running as local…

Guss
- 2,670
- 5
- 34
- 59
4
votes
3 answers
Offline install of npm package
I've got a script that automatically installs some npm packages (specifically karma, which I'd like to install with --global) on an EC2 instance on startup. The problem is that npm sometimes randomly fails, presumably due to network hiccups, though…

Dan Fabulich
- 497
- 1
- 6
- 19
4
votes
2 answers
Why can't I install modules via NPM unless I'm root?
I'm using the latest version of stable node.js (0.8.19)
$cd ~/downloads/node
$./configure
$make
$sudo make install
Doing this installed node.js
Now, when I go to:
$cd ~/myproject/node_modules
$npm install express
npm ERR! Error: EACCES, open…

Alex
- 8,471
- 26
- 75
- 99
4
votes
3 answers
How to configure Systemd service unit to start Node app with "npm start" instead of "app.js"
Environment: CentOS 8, Node.js, Digital Ocean Droplet
My Systemd setup starts a node app with the following command. It works as expected.
$ sudo systemctl start myapp
File 1: /etc/systemd/system/myapp.service
[Unit]
Description = My App
After =…

myNewAccount
- 569
- 1
- 6
- 19
3
votes
1 answer
Node-sass error during installation of node modules
I'm trying to install Laravel on my Debian server, but it fails during installation of node-sass. I have had this setup for a long time and never experienced issues before. Maybe node-sass or npm changed something recently?
Hope you can help me, I…

Emil Moe
- 209
- 2
- 5
3
votes
0 answers
Openshift not installing node modules
I have a production pipeline of local code pushed via git to Wercker (a continuous delivery platform) and then is forwarded to openshift for production. Both steps, the local build and the deployment to openshift give no errors but when the code…

motleydev
- 243
- 1
- 3
- 6
3
votes
2 answers
npm install generator-webapp fail
I have cleaned my run npm remove ... and npm -g remove ... to remove everything related to npm. But I still got below error when I try npm install generator-webapp
npm ERR! peerinvalid The package yo does not satisfy its siblings' peerDependencies…

David S.
- 181
- 11
3
votes
1 answer
private github repo in package.json breaking azure website deployment
Trying to deploy an Express app on an Azure "web site" through Github. I have a private repository in package.json dependencies:
"dependencies": {
"express: "~3.4.0",
...
"private-repo":…

AJcodez
- 233
- 1
- 4
- 11
3
votes
1 answer
Library Error while installing NPM on Ubuntu 22.04 LTS
I'm trying to install NPM on Ubuntu 22.04 LTS;
How can I fix this problem?
Step 1:
user@ubuntu:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Reading package lists...…

Andre
- 1,341
- 4
- 19
- 34