Questions tagged [npm]

npm (Node Package Module) is the package manager for the Node.js JavaScript platform.

Filter by
Sorted by
Tagged with
-2 votes
0 answers
19 views

Node / javascript script can't detect my node & npm versions and fails

I'm trying to run setup for Epic React. The script includes this: var spawnSync = require('child_process').spawnSync // [removed: ... a bunch of useless stuff about colours] console.log(color('info',...
Rin and Len's user avatar
0 votes
0 answers
58 views

Cannot fix the error "The following packages have unmet dependencies"

I'm working with Ubuntu 20.4 Focal Fossa and node v16.20.2. Whenever I run sudo apt install npm or sudo apt-get install npm I get the following error: Reading package lists... Done Building dependency ...
Rania Mahmoud's user avatar
0 votes
0 answers
115 views

How to deal with sh: 1: next: Exec format error?

I want to use npm to run a NextJS project on my Ubuntu 22.04 but every command gives me "sh: 1: next: Exec format error". Do you have any idea how to fix it?
Madosis's user avatar
-2 votes
1 answer
129 views

sudo apt-get update && apt upgrade tried to run this command and got a error

I run the command apt update and upgade but it gave this error .I tried the other methods like dpkg other fixes, but it did not get fixed. Also used grep command also the error ss
Keep Quit's user avatar
0 votes
0 answers
78 views

node_modules installation on external SSD fails with "EPERM" error when installing packages

I'm trying to install Node.js packages on an external SSD connected to my Ubuntu operating system. However, I'm encountering an error during the installation process. Here are the details: Operating ...
Pravin Kori's user avatar
0 votes
1 answer
48 views

Download via pip and npm not working

I am not able to download pip packages or npm packages via terminal. However my browser internet connection is working. I am not sure what is the issue.Please help me to fix it. I am using Ubuntu22.04 ...
vivek's user avatar
  • 545
1 vote
1 answer
343 views

Error while using create-react-app

During an attempt to install create-react-app on my os (unbuntu 22.04), I got this output from the terminal. t*****@poudlardo:~$ sudo npm -g install create-react-app ERROR: npm v9.6.4 is known not to ...
Poudlardo's user avatar
0 votes
0 answers
230 views

NPM install fail unless --no-bin-links is used. Why is that? Probably Ubuntu file permissions, still unsure

There's a lot going on with this drive and I'm not sure where to start troubleshooting. I have a HDD which is partitioned to have 10GB of unallocated space. I formatted as FAT32 and mounted that ...
Drwooi Poipoi's user avatar
0 votes
0 answers
122 views

How to use the packaged ESLint on Ubuntu

There's an apt package called eslint in Ubuntu 22.04, and I intend to use it presumably it's easier to setup. But when I run eslint --init in my project directory, as well as my home directory, it ...
DannyNiu's user avatar
  • 117
0 votes
1 answer
1k views

Unable to install nodemon globally on ubuntu 22.04 LTS

Initially I installed node using the command sudo apt install nodejs. This command installed an older version of node and npm so I removed the package using the command sudo apt-get remove --purge ...
Robin Sharma's user avatar
1 vote
1 answer
74 views

Terminal black screen after deleting and reinstalling Node and npm

I was facing a problem with Node.js, so I decided to uninstall npm and node completely and reinstall them. Now I have a black terminal with no text, and I'm not able to type anything either. I haven'...
Maryam Chouaïbi's user avatar
0 votes
1 answer
711 views

Unable to run "nvm install --lts"

I get this error. Installing latest LTS version. curl: error while loading shared libraries: libkeyutils.so.1: cannot open shared object file: No such file or directory Version '' (with LTS filter) ...
taco-legs's user avatar
0 votes
0 answers
95 views

Ubuntu unable to install latest Nodejs version

I tried to install nodejs 16 but I keep getting older version first $ sudo apt install -y curl then $ curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - then whein I install nodejs: ...
Evan's user avatar
  • 101
2 votes
0 answers
59 views

Kubuntu not allowing me to install npm

Recently I moved to using kubuntu from mint, and when I tried to install npm I got the following error Some packages could not be installed. This may mean that you have requested an impossible ...
RandomDude's user avatar
0 votes
0 answers
124 views

sudo npm cache clean -f messed up sudo permissions

sudo was initially working when running sudo npm cache clean -f, but sudo broke after the npm command finished running. $ sudo npm cache clean -f $ sudo ls sudo: /usr/bin/sudo must be owned by uid 0 ...
gameveloster's user avatar
0 votes
0 answers
147 views

yarn: not found in deployer

I installed the yarn by nvm in Ubuntu20.04. root@server:~# which yarn /root/.nvm/versions/node/v19.0.0/bin/yarn It works when I login the machine and use yarn in terminal. root@server:~# yarn -v 1.22....
User10519069's user avatar
0 votes
0 answers
990 views

npm start says can not find 'semver'

npm start node:internal/modules/cjs/loader:985 const err = new Error(message); ^ Error: Cannot find module 'semver' Require stack: /usr/share/nodejs/npm/lib/utils/unsupported.js /usr/share/nodejs/npm/...
user271865's user avatar
0 votes
0 answers
210 views

At work, "sudo apt update", "git clone", "npm install" errors do not occur, but at home, certificate-related errors occur

Usually at work, I don't get any certificate related errors. However, when I try to execute "sudo apt update", "git clone", "npm install", etc. at home, an error occurs. ...
michi's user avatar
  • 1
2 votes
1 answer
8k views

I got error Cannot find module 'node:path' when installing laravel/vite app

I tried to install laravel9/vite app on Ubuntu 18.04 on my remote host and got error: root@nsn-do-lamp:/var/www/html/mng-products# npm -v 6.14.8 root@nsn-do-lamp:/var/www/html/mng-products# npm run ...
mstdmstd's user avatar
  • 137
0 votes
0 answers
345 views

How can I fix the error message "code EACCES" when I tried to install the react-router-dom node?

I have tried this many times and had this issue in the past, when I tried to install a different node package in another project. I moved on without that other package, but now I'm stuck. I've tried: ...
bambam320's user avatar
0 votes
0 answers
399 views

have access to localhost:80 how to get access to localhost:8080 server is ubuntu on VirtualBox need to get access from host machine

Running Ubuntu server on VirtualBox with host-only and Nat networks can successfully access to Nginx server running on port 80 by :80 getting error when trying to access to :8080/build/app.css, wget ...
G M's user avatar
  • 1
1 vote
0 answers
150 views

How do I figure out the errors that appear in the terminal when I install Node.js and npm?

I tried to install npm and Node.js to my computer today. The operating system in my computer is Ubuntu 20.04LTS. But when it was installing there were a whole bunch of errors in my terminal. It will ...
Nomishka Dilshan's user avatar
0 votes
1 answer
74 views

Can't run NPM from within init.d service

I have a Node.js application I am trying to get to run / stop as an init.d service (I am not using systemd since I am using WSL2). I am also using NVM, so node/npm exist within my user folder /home/...
JLCarveth's user avatar
0 votes
1 answer
549 views

Custom Shortcut for npm/npx command not working

Problem I'm running Ubuntu 20.04 with gnome 3.36.8 and I’m trying to set up a shortcut that should run the command npx mira refresh. This should refresh an external monitor. This command works fine in ...
UnderTheHoud's user avatar
0 votes
0 answers
3k views

After updating npm to 3.8 python related error occurs when npm build

At first, the npm build worked fine and I've been using it ever since. I saw the update information during today's build, and ad error occurs after the update. I have an answer that reinstalls python2....
이승현's user avatar
0 votes
1 answer
891 views

Error installing gtop on Ubuntu 22

I just installed ubuntu on my work machine and trying to get gtop working on it. It's saying I'm missing the node:process package, but I'm not able to find any solutions. I figured that the easy ...
kudo sudo's user avatar
0 votes
1 answer
118 views

Appropriate way to make nvm-installed versions of Node usable in Kubuntu Application Menu/Launcher?

When installing node with nvm, it works great in the terminal - you can run node applications with node path/to/app.js, as you'd expect. However, if you create an Application Menu launcher in Kubuntu/...
J23's user avatar
  • 331
0 votes
1 answer
131 views

Need assistance to install npm require-in-the-middle in Ubuntu

User@userAcc-Dummy:/$ sudo apt-get install npm require-in-the-middle Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package require-in-the-...
NiveditaK's user avatar
2 votes
0 answers
334 views

How to install NVM?

I was having problem with permissions after installing Nodejs and npm. I tried removing them, I thought I was successful at first but then terminal showed me these messages. I ran the command from ...
lukas23's user avatar
  • 21
0 votes
0 answers
716 views

Error while installing node js and npm lts version (UBUNTU 20.04 LTS Desktop) [duplicate]

I am getting an error whenever I am running this command- curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - And here is the full error log:-- ## Installing the NodeSource Node.js 16....
CalmJiad's user avatar
0 votes
0 answers
782 views

Not able to install npm, Unable to correct problems, you have held broken packages. 20.04 [duplicate]

Hi all I am trying to install npm after having installed nodejs but it gave me the following error "E: Unable to correct problems, you have held broken packages." . If I install singularly ...
Omar's user avatar
  • 33
1 vote
1 answer
1k views

Nodejs appear installed but "--version" is not working. On Ubuntu 20.04 LTS

I am having trouble in installing nodejs, npm and a specific version of angularCli. THe problem is that nodejs appears installed when I use the command sudo apt install nodejs but appears not ...
CasualUsers's user avatar
1 vote
0 answers
3k views

node -v: Command 'node' not found (but node is installed)

I am facing a strange issue while using nodejs. When i try to run node -v i get this: Command 'node' not found, but can be installed with: sudo apt install nodejs And when i try to run npm -v i get ...
Manoj's user avatar
  • 19
18 votes
2 answers
37k views

npm does not support Node.js v10.19.0

npm does not support Node.js v10.19.0 You should probably upgrade to a newer version of node as we can't make any promises that npm will work with this version. You can find the latest version at ...
JoKalliauer's user avatar
  • 1,457
2 votes
1 answer
2k views

npm http-server not working on ubuntu 20.04.3 LTS

I've been using http-server on Windows for years. Today I installed http-server on ubuntu and it does not work. It initializes exactly as it does on Windows. However, I get an error when I navigate to ...
claytoncarney's user avatar
0 votes
1 answer
3k views

How to install node.js 16.13.1 [duplicate]

I want to use npm but it tells me on every command "npm does not support Node.js v10.19.0" so I want to update my node.js. I performed sudo apt update I tried to install it with sudo apt ...
CrackbuddyMethusalem's user avatar
1 vote
0 answers
366 views

Wetty Ubuntu 20.04

I'm trying to install wetty on Ubuntu 20.04, but I'm running into some issues. I get a lot of warnings and errors when I run the npm install command. All the guides I find are related to older version ...
FilterFeeder's user avatar
0 votes
4 answers
3k views

How to install npm with LTS version of Node.js?

I don't understand why there is no simple way or explanation in the entire web on how to do this. sudo apt install npm installs npm with Node version 10.19.0, but I want to install the LTS version (16....
Foobarer's user avatar
  • 347
1 vote
1 answer
2k views

broken packages error while installing npm on ubuntu

I'm trying to install gtop on my Ubuntu machine. For that I need to install nodejs and npm package manager. First I installed nodejs with sudo apt install nodejs and it get installed fine, but for ...
Kiumars Javan's user avatar
0 votes
1 answer
494 views

Installing yo & generator-code on xubuntu

So I have been trying to install yo & generator-code for xubuntu to try making some vs code extensions, I installed nodejs & npm via sudo apt-get then did sudo npm install -g yo generator-code ...
Bahaeldin0's user avatar
0 votes
1 answer
350 views

can not install vuejs using npm on ubuntu 20.4

Error: EACCES: permission denied, open '/home/sabbir/package-lock.json' I am new on ubuntu I can not install vue js on my ubuntu 20.4 I am having this error.Having this same error installing some ...
Sabbir Ahmed Shawon's user avatar
0 votes
1 answer
646 views

Error Running npm run dev in Vagrant and VirtualBox: Cannot find module 'webpack'

To give a little context of my problem, here's my local setup: Vagrant 2.2.16 VirtualBox 6.1.26 Ubuntu 20.04 LTS npm v7.20.6 node v16.6.6 At first, I had a very hard time installing webpack-cli ...
Semb's user avatar
  • 1
1 vote
0 answers
3k views

node:internal/modules/cjs/loader:936

After install Node.js and NPM with commands (sudo apt update && sudo apt upgrade, sudo apt install nodejs (v16.7.0), sudo apt install npm(7.20.3)) in Ubuntu 20.04, I receive message bellow : ...
Odilon's user avatar
  • 11
3 votes
2 answers
40k views

Update NodeJS from 10.19.0 to 14.17.3 LTS in 20.04

I am using Ionic and my builds are failing. It says I need to have the latest npm and node.js. Sadly, my attempts so far from another topic and sudo apt-get update and sudo apt-get upgrade etc is ...
user227495's user avatar
  • 3,947
3 votes
0 answers
2k views

How can I get rid of "New minor version of npm available" on using npm?

Every single time I use npm it asks me to upgrade its minor version. For example spam that I received on upgrading mapshaper: 6 packages are looking for funding run `npm fund` for details found 0 ...
reducing activity's user avatar
1 vote
0 answers
218 views

Updating node over apt causes npm downgrade

Every time I upgrade node.js (to 14.17.2 today) using apt, it somehow downgrades npm (e.g. from 7.19.1 to 6.14.13). I have to manually upgrade npm using npm install -g npm every time. I've been doing ...
Niklas E.'s user avatar
  • 156
1 vote
1 answer
1k views

Cannot install nvm, npm or nodejs

I'm having trouble installing nodejs and npm on my newly installed WSL2. I've set the WSL up according to the instructions from Microsoft and downloaded the Ubuntu program from Windows Store. I tried ...
Sara's user avatar
  • 11
0 votes
1 answer
244 views

VS Code React installation issues

$ npx create-react-app my-app npx: installed 67 in 8.478s Creating a new React app in /home/unaiz/Desktop/mango/my-app. Installing packages. This might take a couple of minutes. Installing react, ...
Unaiz's user avatar
  • 1
0 votes
1 answer
1k views

nodejs is installed but fails to display the version

I am using Ubuntu 20.04. I have installed nodejs using sudo apt install nodejs, but when using nodejs --version it asks me to install. Then when I am trying to use sudo apt install npm it's displaying ...
Nivesh Gadipudi's user avatar
0 votes
1 answer
2k views

UNABLE_TO_VERIFY_LEAF_SIGNATURE after `apt install npm`

I'm actually attempting to install gTile, which requires Bazelisk. On a relatively clean system: $ sudo apt install npm # takes almost 5 minutes, then: $ npm install -g @bazel/bazelisk npm ERR! code ...
Chaim Eliyah's user avatar
  • 1,149

1
2 3 4 5 6