Questions tagged [npm]

70 questions
21
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…
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
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
  • 277
5
votes
1 answer

how to fix the npm install fails with 'An unknown git error occurred' in one folder but works in a another folder

My Server runs on Centos 8 and I installed nodejs latest (v14.17.5) and NPM (v7.21.0), both dont have a .git folder in there. I have a very very strange issue, If I goto folder example1.com, and run npm install I get the below error, [root@www…
mahen3d
  • 4,682
5
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 =…
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.
  • 130
  • 2
  • 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
  • 331
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…
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
  • 3,080
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…
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,839
3
votes
2 answers

How to install NPM on Debian?

Can somebody please help with installing NPM in Debian? First I tried apt-get install npm but got this message: Unable to locate package npm. So I followed the installation steps for Debian from nodejs.org. The first command: curl -sL…
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
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
  • 263
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.
  • 211
1
2 3 4 5