Questions tagged [npm]

65 questions
0
votes
1 answer

how to resolve rename error when insalling grunt via npm without admin access?

I need to install grunt for a project setup in Windows 7. However, I am running into an issue that whenever I try to install grunt globally, it fails because of a permission error. A few other people had this problem and a few others do not, the…
user3346931
  • 139
  • 6
0
votes
1 answer

docker npm ERR! install Couldn't read dependencies

While trying Docker Tutorial https://prakhar.me/docker-curriculum/#dockerrun getting error while running root@ip-172-31-22-20:~/docker-curriculum# docker build -t ashishkarpe/foodtrucks-web . root@ip-172-31-22-20:~/docker-curriculum# docker build -t…
Ashish Karpe
  • 277
  • 2
  • 5
  • 19
0
votes
1 answer

How to launch let'schat (nodejs app) as deamon?

I have installed "let's chat" on my server. In the documentation, they say to launch the application with npm start from the directory where the application is installed. But i'm unable to launch it with systemd. I want the application to be always…
Antoine
  • 125
  • 5
0
votes
1 answer

Any way to stop apt-get upgrade downgrading npm to version 2?

I installed nodejs 4 on Ubuntu 14.04 using node's official PPA, as described here. It seems like npm v2 is the default so I upgraded npm to v3 using itself (npm update --global). Version 3 is required by the software I am deploying. Everything is…
contrebis
  • 103
  • 3
0
votes
2 answers

google engine 502 bad gateway during fetch npm package

I'm getting weird 502 error while trying to fetch npm package inside of google service instance. Error is constantly repeating on Google App Engine (Docker container deployment procedure), and Google Compute Engine instance (while trying to simple…
0
votes
0 answers

EC2 instance (Ubuntu) suddenly got very sluggish

I logged into my EC2 instance on AWS, pull the latest code and started running npm update and noticed my Ubuntu become very, very sluggish. When I run ps aux I got this: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND …
spirytus
  • 197
  • 2
  • 4
0
votes
1 answer

Are we drowning in package managers?

The current trend is to use language-oriented package manager, such as npm or bower for javascript, pip for python, gems for ruby and so on. As I understand the need for a dependency manager when you want to deploy your application (they all can do…
luxcem
  • 111
  • 1
  • 4
0
votes
1 answer

Bad output for "npm ls"

How can I fix this ugly output for "npm ls"? Debian Wheezy / node v0.10.36 / npm 2.4.1 UPDATE: «*» - is an ugly char, that I can not reproduce here: helloworld@1.0.0 /var/www/helloworld *** express@4.11.2 *** accepts@1.2.3 *****…
0
votes
1 answer

npm install failing at gyp rebuild on ubuntu server 12.04.5

Hi [first serverfault q so hope this isn't too dumb a question] I've got a setup on a Ubuntu 12.04.5 server that is just for deploying meteor js applications. Previously my deploy pattern worked but on my latest one something has gone wrong. Briefly…
iiz
  • 101
  • 3
0
votes
2 answers

Which combination of global/local sudo/notsudo for which node.js npm install package?

I'd like to install packages like these on MacOSX, but interested in Windows or Linux versions too: npm install express npm install swig npm install mongodb npm install consolidate npm install http-auth If I call npm without sudo, some of them will…
massimo
  • 1
  • 2
0
votes
0 answers

apt/maven/npm checksum failure on amazon ec2

I'm recently encountering multiple download checksum failures when booting ec2 machine. This manifests itself with sporadic failures of apt, maven and npm installs. In one case that the pom checksum failed, I found a Fastly Debug message in the…
Itai Frenkel
  • 203
  • 1
  • 8
0
votes
0 answers

My nodejs app is acting up and I can't figure out what is going

This app was running very fine in docker, however, I moved it from public subnet to private subnet and all hell was let loose. I get the following error message: [Nest] 19 - 07/04/2022, 12:27:26 PM LOG [InstanceLoader] TypeOrmModule…
0
votes
1 answer

domain "alias" in LAN

I have the following setup: a registered domain, domain1.com, with several websites/webapps under different subdomains: sub1.domain1.com, sub2.domain1.com etc. on my LAN I have a pfsense router and a Nginx Proxy Manager(npm) which maps each…
0
votes
0 answers

npm script not able to use executables from node_modules.bin directory

My npm script in package.json looks like this: "build": "$(npm bin)/react-scripts build", OR "build": "react-scripts build", It throws the following error: Error: Cannot find module '../scripts/build' Require stack: -…
systemdebt
  • 99
  • 2
0
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
  • 3,905
  • 12
  • 34
  • 55