Questions tagged [npm]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 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/...
user avatar
0 votes
1 answer
33 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 ...
user avatar
0 votes
0 answers
103 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....
user avatar
0 votes
1 answer
53 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 ...
user avatar
0 votes
0 answers
26 views

npx qx doesnt run

I am trying to create a qooxdoo project using the documentation. when I install @qooxdoo/framework either globally or locally via npm install I get the following error when I run npx qx internal/url....
user avatar
0 votes
1 answer
29 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/...
user avatar
  • 171
0 votes
1 answer
50 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-...
user avatar
1 vote
0 answers
76 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 ...
user avatar
  • 11
0 votes
0 answers
208 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....
user avatar
0 votes
0 answers
244 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 ...
user avatar
  • 33
1 vote
1 answer
282 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 ...
user avatar
1 vote
0 answers
761 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 ...
user avatar
  • 11
9 votes
2 answers
18k 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 ...
user avatar
  • 1,072
1 vote
1 answer
755 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
1 vote
0 answers
155 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 ...
user avatar
0 votes
0 answers
175 views

Why won't node update on Ubuntu, but has on Powershell?

Every time I start my ubuntu terminal I get this message saying the latest version of npm does not support my current version of node(15.13.0), but I went to [Nodejs][1] and installed v 16.13.0 ...
user avatar
0 votes
0 answers
73 views

I can no longer initialize a React project

For a long time now, it has been impossible for me to initialize a react project, or even to initialize a project with npm because of multiple errors that I cannot resolve. Initially, it started from ...
user avatar
0 votes
4 answers
1k 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....
user avatar
1 vote
1 answer
475 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 ...
user avatar
0 votes
1 answer
326 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 ...
user avatar
0 votes
1 answer
108 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 ...
user avatar
0 votes
1 answer
209 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 ...
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 : ...
user avatar
  • 11
2 votes
2 answers
15k 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 ...
user avatar
  • 3,515
2 votes
0 answers
1k 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 ...
user avatar
1 vote
0 answers
126 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 ...
user avatar
  • 166
1 vote
1 answer
423 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 ...
user avatar
  • 11
0 votes
1 answer
208 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, ...
user avatar
  • 1
0 votes
1 answer
790 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 ...
user avatar
0 votes
1 answer
1k 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 ...
user avatar
  • 1,082
0 votes
0 answers
92 views

Should I run `npm install -g npm` if my current npm was installed with apt?

Whenever I use npm, I get a big fat warning: ╭────────────────────────────────────────────────────────────────╮ │ │ │ New major ...
user avatar
  • 395
0 votes
1 answer
24 views

How to use npm file-storage package?

I learn Javascript and don't even know, how exactly use FileStorage object. var storage = new FileStorage(...); // supply valid credentials The package link: https://www.npmjs.com/package/file-...
user avatar
0 votes
1 answer
586 views

Installing Ganache GUI in Ubuntu

How exactly is Ganache installed on Ubuntu? The approach of using git looks advantageous, yet, I'd expect a sort of wrapper around git for use from within npm or similar. Or does this have to be ...
user avatar
0 votes
1 answer
329 views

Login to netlify from your workspace terminal

I used netlify login in the terminal but it gives the error - netlify: command not found. I have also installed netlify CLI using this command - npm install netlify-cli -g but still getting this error....
user avatar
1 vote
2 answers
259 views

Disadvantages of using npm n for upgrading nodejs

My question There are some criticisms against npm n, but they are dated (mostly from < 2018). Do the criticisms still stand? Is n unstable or does it have pitfalls? It bears saying that there were ...
user avatar
  • 155
1 vote
0 answers
982 views

How can I solve "Media change: please insert the disc labeled"? [duplicate]

When I run sudo apt install npm I get: Media change: please insert the disc labeled 'Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731)' in the drive '/...
user avatar
0 votes
1 answer
406 views

Ubuntu 20.04 shell loads slow because of "npm config --loglevel=warn get prefix" command

My shell always takes a couple of seconds to load the first time when I boot up, after boot up, when I open up the terminal multiple times to load the shell again and again the boot time decreases to ...
user avatar
0 votes
1 answer
2k views

What is the problem with node_modules (or npm) PPA on Ubuntu

I started to use Ubuntu last year and since today I face really annoying problems. Firstly the problems were Reactjs with script errors which I couldn't even start a project, anyway I solved in ...
user avatar
0 votes
0 answers
1k views

npm install return network error ECONNRESET

Everytime I try installing packages using npm I get the following error npm ERR! code ECONNRESET npm ERR! errno ECONNRESET npm ERR! network Invalid response body while trying to fetch https://...
user avatar
  • 101
0 votes
0 answers
239 views

Problem with installing web3 using npm

I am trying to install web3 on my ubuntu 18.04 system. I am using the following command: @lc2530hz:~$ sudo npm install -g web3 but I am getting the error: sudo: npm: command not found But when I am ...
user avatar
0 votes
1 answer
2k views

NPM install fails on ubuntu 20.04 Vagrant box

I'm running into ENOENT errors when trying to npm install on a Linux Vagrant box. My code in the provisioning script looks like: sudo apt-get update sudo apt-get install nodejs sudo apt-get install ...
user avatar
0 votes
1 answer
348 views

NPM, NVM, NodeJS on WSL2 Ubuntu

Before I you read my question, please let me know if WSL2 Ubuntu related questions are permitted in this forum. I have a Laravel App on Ubuntu WSL2. I am trying to add SCSS/SASS with it. I already ...
user avatar
  • 1
1 vote
0 answers
18 views

Installing npm on Ubuntu 20 requires Ubuntu CD [duplicate]

I have installed node correctly and now trying to install npm sudo apt install npm But I get Media change: please insert the disc labeled 'Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731)'...
user avatar
  • 153
2 votes
1 answer
6k views

"/usr/bin/env: ‘node’: No such file or directory" on terminal startup

I just updated to 20.04 and every time I open a terminal /usr/bin/env: ‘node’: No such file or directory shows at the very top. I have searched for answers but in the questions I found, npm did not ...
user avatar
  • 235
1 vote
1 answer
73 views

Problem Installing express-generator On Ubuntu

I have Graal JVM installed on Ubuntu 20.10. I tried installing express-generator, but I got this error message: $ npm install -g express-generator bash: /usr/lib/jvm/graalvm/bin/npm: No such file or ...
user avatar
  • 239
0 votes
1 answer
167 views

Can not use npm install in project

I've installed node using nvm, but when I go in my project folder and try to run npm install it shows npm not found. However I tried to install gulp globaly with sudo npm install -g gulp it worked. ...
user avatar
0 votes
1 answer
1k views

can't install npm package : E: Unable to correct problems, you have held broken packages [duplicate]

I tried to install npm package but it still gave the same output : check here the screenshot I even try this solution : npm can't be installed but still the same error occured ! plz help me !
user avatar
1 vote
0 answers
391 views

How to install npm in ubuntu 18.04 without breaking ROS melodic?

npm depends on libssl1.0-dev but ROS melodic installs libssl-dev. So installing npm is not possible as there are broken packages. Is there any workaround for this?
user avatar
3 votes
1 answer
3k views

old version of npm is installed on running apt-get install npm on Ubuntu 18.04

Trying to install npm using command sudo apt-get install npm on Ubuntu 18.04.2 LTS. expected 6.14.7 to be installed but 3.5.2 is being installed.
user avatar

1
2 3 4 5 6