Skip to main content

Questions tagged [npm]

The tag has no usage guidance.

0 votes
0 answers
56 views

Updating lodash to the latest version to resolve a handful of vulnerabilities

I'm attempting to update lodash and have run several commands; npm update -g lodash npm update lodash --force I've ran npm cache clean --force but nothing. Many of the lodash modules are outdated ...
Scivic's user avatar
  • 1
0 votes
1 answer
389 views

How to have nexus download the newest package from npmjs official site when package is not present in local

I have updated the npmjs package to 0.1.148, but when I update the package in macOS using this pnpm command: > pnpm update --force  WARN  using --force I sure hope you know what you are doing  ...
Dolphin's user avatar
  • 427
0 votes
0 answers
127 views

How do i run assets (npm run production) on an elastic beanstalk laravel application?

I have a laravel application, running on an AWS eb instance (elastic beanstalk).I have uploded the code, and connected a database and everything works fine without any errors. But i need to compile ...
danielh's user avatar
1 vote
1 answer
2k views

Npm install and ng build takes 35-40min

I have environment: Jenkins Docker proxmox with vm and lxc container angular 9 project Problem is with my Dockerfile building, it takes around 35-40min. My dockerfile FROM node:12.6-stretch ARG ...
PawelC's user avatar
  • 179
3 votes
1 answer
2k views

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 ...
Andre's user avatar
  • 1,351
0 votes
1 answer
580 views

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 ...
popliviustefan's user avatar
2 votes
1 answer
17k views

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 ...
mahen3d's user avatar
  • 4,522
3 votes
0 answers
4k views

Using SSH key for install npm module from private repository inside docker

I make container for nodejs project. Inside the project I am using private repository. I need an access to it. For that I am using next Dockerfile FROM node:15 RUN echo "StrictHostKeyChecking no&...
Eugene's user avatar
  • 157
0 votes
2 answers
1k views

Program installed for one user cannot be accessed from other user even full path is provided

I have all the npm pacakages installed for a particular user (i.e) not root (/home/otheruser/*) I am using monit to see whether to check the program is running. In this case its pm2, which is in /home/...
The Keeper's user avatar
2 votes
0 answers
1k views

WSL2 on Windows 10 - installed NVM, Node but can't install any package

I have WSL 2 on my Windows 10 (* Ubuntu-20.04 Running 2). I installed nvm and node on it. nvm --version: 0.35.3 nvm ls: -> v14.11.0 default -> node (-> v14.11.0) node -> stable (->...
AlexB's user avatar
  • 121
1 vote
1 answer
337 views

How to assign which user to execute commands inside the container in AWS FARGATE

i'm trying to launch a nodejs container using AWS FARGATE, the problem i'm facing is that fargate gives me this error : cannot find this module "/path/to/file/webrtc.js" And when i execute ...
logax's user avatar
  • 139
-2 votes
1 answer
77 views

What's the magic path for npm when using sudo?

I remember I was able to use something like sudo ${which npm} run xxx when I needed root privilege to run npm. What is it?
Aero Windwalker's user avatar
4 votes
3 answers
26k views

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/...
myNewAccount's user avatar
1 vote
1 answer
3k views

NPM issue, where to start

Hopefully this is the right forum to post. Coming stack overflow but I think this is more you guys' expertise. I have a centos 6.10 box. It had Node.js and npm running ok. I don't know which versions ...
Aaron's user avatar
  • 113
5 votes
3 answers
5k views

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 ...
Nissy A.W.'s user avatar

15 30 50 per page
1
2 3 4 5