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
1answer
25 views

Does @ionic-native have issues with Ubuntu?

I am trying to run an Ionic project in my Ubuntu 20.04 laptop but when I run ionic serve this error shows up. I have done npm install and my package.json has all the dependencies needed, I know this ...
0
votes
1answer
115 views

How can I fix this npm error installing electron?

When I use npm install electron -g, I get this error: npm ERR! code EEXIST npm ERR! path /usr/local/bin/electron npm ERR! Refusing to delete /usr/local/bin/electron: ../lib/node_modules/electron-...
0
votes
0answers
20 views

Why is there a Node.js icon in my terminal while I'm in home directory in zsh?

I'm using zsh on urxvt. I wanted to try gtop so I installed npm, then gtop by sudo npm install gtop -g (when I was in my home directory) and from then, when I'm in my home directory in zsh, I see node ...
0
votes
0answers
33 views

Why is the semver error happening?

frederick@frederickpina:~$ npm install internal/modules/cjs/loader.js:1023 throw err; ^ Error: Cannot find module 'semver' Require stack: /usr/share/npm/lib/utils/unsupported.js /usr/share/npm/...
0
votes
0answers
16 views

Trouble installing Faker with npm on Ubuntu 20.04

I recently installed nodejs using the sudo apt install nodejs command. But when I try to install faker by using npm I get this: julian@JLUNAI:~$ npm install faker npm WARN saveError ENOENT: no such ...
0
votes
1answer
595 views

Why does the problem “npm WARN deprecated request@2.88.2: request has been deprecated” occur?

I have istalled latest version of node and npm. When I'm trying to install a global package (npm install -g firebase-tools), the terminal show me some errors. How can I solve the problem? Thanks.
0
votes
0answers
27 views

Uninstalling node and npm and then again reinstalling

I have run into an [issue] and looking to remove nodejs and npm completely and then install again. I have installed node from the terminal. What's the best way to do it? My system is Ubuntu 20.04LTS. ...
0
votes
1answer
42 views

Even after update node -v shows older version [duplicate]

I am trying to update node version. Even after updating node to v10.x it still shows older v8.x. I have added path where npm and node is installed and node and npm version. I also used nvm. I have ...
1
vote
1answer
179 views

How can I install forever-monitor on ubuntu

Where do I make a mistake?.. I can't install it under the ubuntu I have two devices: jetson nano and desktop ubuntu 18 I am running the following command: $npm i -g forever-monitor I get the same ...
0
votes
0answers
42 views

node -v shows v8.10.0 and sudo node -v shows v12.16.1 . Can somebody help in resolving the issue?

rishu@rishu-X556UR:~$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin rishu@rishu-X556UR:~$ vi ~/.bash_profile rishu@rishu-X556UR:~$ node -...
0
votes
0answers
185 views

illegal hardware instruction (core dumped) crash when NPM on 18.04

I haven't used node/npm in weeks but today so I have no idea since when this is failing. I'm using nodejs v13.10.1 and npm v6.13.7 and when I try to install npm dependencies I get the error: [1] ...
1
vote
1answer
347 views

Atom can't install any package on Ubuntu (Error code ELIFECYCLE)

Today, suddenly, Atom can't install any packages at all. It used to work fine earlier and I have a few packages installed already. But now it's failing with Exit status 134. This is happening no ...
0
votes
0answers
432 views

Problem installing ungit

When I enter these commands into the console to install ungit, sudo ln -s /usr/bin/nodejs /usr/bin/node sudo -H npm install -g ungit the following errors appear. Can you help? ...
0
votes
1answer
72 views

Can't Update Apt to get Recent Version of npm

I'm trying to install a more recent version of npm. On the Ubuntu packages site for 19.10 Eon it lists the version as 5.8.0, which is perfect, but when I go to the command line and type "apt show npm" ...
0
votes
0answers
45 views

newb question : Did I mess with anything while installing npm?

So I'm very new to Ubuntu, never used it before. I'm on Ubuntu 19.10 Here's the story : I've installed node from the Ubuntu software. Then, I removed it using the Ubuntu software cause it wasn't up ...
1
vote
1answer
212 views

Broken Dependencies Installing NPM on Ubuntu 18.04.3 Server

I'm currently attempting to install NPM on an Ubuntu 18.04 Server install, but getting the following error: Reading package lists... Building dependency tree... Reading state information... Some ...
0
votes
0answers
165 views

npm installation fails on Ubuntu 18.04.3 LTS with Connection failed [IP: 103.97.84.254 80]

ubuntu@ubuntu-Lenovo-G580:~$ sudo apt-get install npm Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: . . ....
0
votes
0answers
96 views

How to execute npm command in .desktop file

I am trying to write .desktop file to start my react-app. What this file should be doing is going to working directory and executing 'npm start'. Here's what I've achieved so far: [Desktop Entry] ...
0
votes
0answers
250 views

Nodejs update error

I tried that way: root@ubuntu-14:/home/aldo# node -v v9.11.2 root@ubuntu-14:/home/aldo# npm -v 5.6.0 $ sudo npm cache clean -f $ sudo npm install -g n $ sudo n 12.14.0 But is returning this ...
0
votes
2answers
443 views

Unable to install nodejs and npm correctly?

I want to install nodejs its npm manager but when i try to execute its commands throwing the following error...I tried to install in different methods whatever i found in google and after installing ...
2
votes
1answer
885 views

how to run npm build from bash script triggered by cronjob?

I have a very simple bash script (run-build.sh): cd /var/www/project npm run build This script works fine when I run it from the command line but I want to run it every 30 minutes via a cron job: */...
0
votes
0answers
105 views

Use of global NPM modules / Command not found

I am using Ubuntu 18.04 and I have an issue using npm modules from the command line. Actually I installed sequelize and sequelize-cli and when I try to run their commands the terminal tells me that ...
0
votes
1answer
343 views

Broken npm package?

I am on Kubuntu 19.10. I installed npm via apt, and when I do anything (even simply npm -v), I get this error: $ npm -v internal/modules/cjs/loader.js:800 throw err; ^ Error: Cannot find ...
0
votes
0answers
11 views

NodeJS causes lock screen to malfunction

From the moment I have installed NodeJS and NPM, my lock screen (gdm3) has stopped working normally. If I have used a npm command in this session, locking the screen will cause an impossibility to log ...
0
votes
1answer
1k views

Missing write access to /usr/local/lib/node_modules

I was updating NPM, Node, and Vue (a javascript framework). I think somewhere I changed the permissions to a directory to root root. I am trying to run npm install -g @vue/cli I get a string of ...
0
votes
0answers
424 views

Simplest way to upgrade NodeJs and NPM

In nowadays (~2020) not make sense to copy/paste big scripts from internet to install the official stable version of a package... There are a simpler (and reliable) way (comparing with this ugly ...
0
votes
0answers
131 views

Brave browser build fails in Ubuntu 16.04

I am trying to build brave browser https://github.com/brave/brave-browser/wiki I successfully build it around 2 weeks ago. when I am trying to rebuild again it's giving me errors that I do not ...
0
votes
1answer
35 views

i'm trying to install odoo 12 on ubuntu 18.04 and i'm facing issue about npm so i want to remove node completley , but i'm facing errors

i'm facing issues about npm while installing odoo12 "The following packages have unmet dependencies: npm : Depends: nodejs but it is not going to be installed" so i'm trying to remove existing node ...
0
votes
0answers
98 views

sudo needed to create a build through terminal

I'm using VuePress with NPM/NodeJS and instead of creating a build through vuepress build it needs sudo to make it work. sudo vuepress build How to make it work without sudo? Error: Error: EACCES:...
0
votes
0answers
251 views

Can't npm run dev command for laravel project

I'm trying to run npm run dev command on ubuntu 16.04, for laravel 5.4 I tried npm rebuild command also but still, when I'm trying npm run dev , I'm gettin this errors: > @ dev /var/www/html/...
1
vote
0answers
126 views

Error: Could not locate the bindings file

I am building a project on visual studio code. I have successfully installed node.js version 12.13 and npm version 6.12 on my Ubuntu-19.04. Part of the code will also be execute on a raspberry-pi as ...
0
votes
0answers
62 views

Visual Studio Code compiles with npm, node.js but does not show GUI interaction on localhost:42000 on Ubuntu 19.04

I just successfully installed npm 6.12, Node.js version 12.13 on my Ubuntu 19.04. I also successfully compiled a project using Visual Studio Code. It is my first time using VS and I have been trying ...
1
vote
1answer
254 views

Error executing command during installation of Node.js and npm on Ubuntu 19.04

I have been trying to install Node.js and the related package npm on my Ubuntu 19.04. I have: v10.15.2 for Node.js and 5.8.0' fornpm`. I know from this source that the default version of npm for Node ...
0
votes
0answers
24 views

couldn't install reactjs or upgrade nodejs

I am trying to install React on Ubuntu 19.10: I tried to install from root: I am trying upgrade Node.js but it's saying it's up to date but the latest version is 13.0.1.
0
votes
1answer
111 views

Installing Current nodejs version

Starting to learn Nodejs in Ubuntu (New to ubuntu as well). when I use apt install nodejs , v8.x.x is getting installe instead of current v12.x.x. I tried to use nvm using from here but it is only ...
1
vote
0answers
79 views

How to install NodeJS and NPM on Ubuntu 18.04? [duplicate]

How to install NodeJS and NPM on Ubuntu 18.04? 1) I'm wrong, I add the referenciel 11 while I want the version 10 LTS. How can I change that ? 2) Can not install NodeJS and NPM. THERE are errors ? ...
0
votes
1answer
109 views

Run npm 32-bit on linux 64-bit system?

So I download this: https://nodejs.org/dist/v10.16.3/node-v10.16.3-win-x86.zip Unzip it. Then install wine 32-bit: dpkg --add-architecture i386 && apt-get update && apt-get install -...
0
votes
1answer
110 views

Cannot create foder

I am running the following command sudo npm install node-sass --save-dev and the process fails with the error as follows :- build dir attempting to create "build" dir: /home/anit/Desktop/...
0
votes
0answers
101 views

npm/rethinkdb/node.js crashing after reboot

I am a little bit newbie in these things. I do some web coding at school only. I found a contest a few days ago. I setuped the backend, I just need to make the frontend. I have a digital ocean droplet ...
0
votes
1answer
623 views

Bower Segmentation fault (Core dumped)

Hi I have just installed nodejs and npm on my Ubuntu 18.04. I am trying to install mirador as per installation instructions here: https://github.com/ProjectMirador/mirador/wiki/Getting-Started When I ...
2
votes
1answer
7k views

npm version is not compatible with node.js version

I was trying to install mysql for npm with the comand npm install mysql, then I receive this error message: npm WARN npm npm does not support Node.js v10.15.2 npm WARN npm You should probably upgrade ...
1
vote
1answer
340 views

Switching node versions on Ubuntu 19 messes up npm

I am on Ubuntu 19.04. When I do ... sudo n 9.11.2 ... do some compiling here and return by ... sudo n latest then ... npm -v I get ... Error: Cannot find module 'semver' Require stack: - /...
0
votes
1answer
421 views

sudo npm install -g ionic not working

I have been trying to install Cordova and ionic on ubuntu 18.04. Cordova installed fine, but ionic generated this error: WARN checkPermissions Missing write access to /usr/lib/node_modules/ionic ...
0
votes
0answers
250 views

Gulp is not installing globally

I'm running vagrant with Ubuntu as follows: Distributor ID: Ubuntu Description: Ubuntu 16.04.6 LTS Release: 16.04 Codename: xenial I'm attempting to install gulp globally. sudo npm ...
0
votes
0answers
20 views

Ubuntu login loop after changing PATH after installing npm

I followed a tutorial to install StarUML and they told me to change my path to /home/user/.npm-global/bin:$PATH:snap/bin And now I can't login to Ubuntu. How can I change my path to default path and ...
5
votes
1answer
8k views

Npm can't find module “semver” error in Ubuntu 19.04

I am getting the following error whenever I try to run npm command. internal/modules/cjs/loader.js:626 throw err; ^ Error: Cannot find module 'semver' Require stack: - /usr/share/npm/lib/utils/...
0
votes
1answer
3k views

Error with NPM (cannot find module 'semver')

I had npm and nodejs working fine. I didn't mess around with for a few months as I was working with something else. Today I come back to check some projects, and when I ran "npm run dev" it gave me ...
2
votes
1answer
2k views

Always getting an error every installing expo-cli

So, basically, I always get an error every installing expo-cli through an npm or yarn, I wonder how to fix this error, Thank You. Using NPM : npm WARN deprecated joi@14.0.4: This version has been ...
0
votes
1answer
1k views

Getting error while creating react native app

I have installed Nodejs, Java, Python and android studio and installed create-react-native-appby following command npm install -g create-react-native-app after that I am running sudo create-react-...
1
vote
2answers
1k views

Trying to run `npm run` on server start

I have seen similar questions but none answers mine. It may be that I'm overlooking something. I have an existing server with subdomain pointing to next.js port and can successfully run nexxtjs app ...

1
2 3 4 5