Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [npm]

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

0
votes
1answer
43 views

install npm (node have been installed, npm missed)

Ubuntu version is 18.04.1 LTS I need to upgrade node version. So following some forum recommendations I've uninstalled npm and node: sudo npm uninstall npm -g sudo apt-get purge --auto-remove nodejs ...
0
votes
0answers
31 views

Can't install npm in Elementary OS [closed]

I have ElementaryOS (Ubuntu LTS 18.04) already installed in my PC. I want to install npm using sudo apt install npm, but when I started I found some error like this : Reading package lists... Done ...
0
votes
1answer
43 views

npm is not installing on ubuntu [duplicate]

I can't install npm.Whenever i try to type sudo apt-get install npm this comes `E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the ...
1
vote
1answer
41 views

Using npm to install file to /usr/local/bin

I tried to install a file using the following command: npm install -g price-feeder It's supposed to be installed in the /usr/local/bin folder since it's using the global parameter to be accessible ...
0
votes
0answers
96 views

npm on WSL: Unable to correct problems, you have held broken packages [duplicate]

I'm using Ubuntu on Windows 10, and was working with Node.js earlier today. It was my first time using node, so I had just installed it (it's installed on the subsystem). All npm commands worked fine ...
0
votes
0answers
47 views

Uninstalling “Maven” and “npm” installed from source

I needed to remove "Maven" Installed with binary files and npm. I followed this link: How to install maven on ubuntu and also npm installed with: curl -sL https://deb.nodesource.com/setup_8.x | ...
3
votes
1answer
33 views

How to check if the certain npm module is globally installed on my machine?

How to check if the some needfull npm module is globally installed on my machine,and if so, what is the version ?
0
votes
2answers
222 views

Ubuntu 18.10 - unable to install NPM

I tried to install npm and I repeatedly got error that NPM depends on package node-gyp (>= 0.10.9) but that package is not installable. I have no packages broken (I search for them using dpkg) but I ...
1
vote
0answers
29 views

How to clone github npm server on my domain name?

I'm trying to clone this https://github.com/gnuns/allorigins on my own domain /var/www/example.com/public_html/ The domain is configured correctly. but nothing change after writing these command lines ...
0
votes
1answer
47 views

Local Workspaces Permissions Management and GitHub Integration

I have a folder ~/workspaces where I place all my local repositories from GitHub and other coding projects. I use VS Code and have had permissions problems since I installed Ubuntu a month ago. I ...
0
votes
1answer
296 views

npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed [duplicate]

I want to install npm. I've updated everything but I can't fix the problem. The message I get is: Reading package lists... Done Building dependency tree Reading state information... Done ...
0
votes
0answers
111 views

Let and Block-scoped declarations problem with npm installing

I am using Ubuntu 16.04. After installing npm, it's not working as intended. I am getting error like the following: $ npm -v /home/MYUSERNAME/.npm-packages/lib/node_modules/npm/bin/npm-cli.js:85 let ...
0
votes
0answers
46 views

cannot use npm to install redis and moment

I need to use npm to install packages redis & moment on my system but it's not happening, I'm getting this instead: $ npm install redis;npm install moment /home/ron └─┬ redis@2.8.0 ├── double-...
0
votes
1answer
31 views

Problem with wikit, a command line tool to search wikipedia on linux

Hello a couple of weeks ago I installed wikit, a program for displaying summaries of Wikipedia articles on the linux terminal. The command that I used for the installation was: "sudo npm install ...
0
votes
0answers
43 views

NPM installation fails due to python dependency error

I try to install the npm package on my Ubuntu 18.04 but it fails. My question is, can I have a python2.7 installation (what I actually seem to have according to whereis python2.7) and what do I have ...
0
votes
0answers
125 views

Unable to install npm in Ubuntu 16.04

I have installed nodejs $ nodejs -v 4.2.6 now i am trying to install npm i tried sudo apt install aptitude sudo aptitude install npm it is showing /usr/local/bin/node: 1: /usr/local/bin/node: ...
0
votes
0answers
177 views

Got error when running “npm test”

when running "npm test" I got these error: /usr/local/lib/node_modules/npm/bin/npm-cli.js:85 let notifier = require('update-notifier')({pkg}) ^^^ SyntaxError: Block-scoped declarations (let, ...
0
votes
1answer
357 views

unable install package via npm install

This are the errors npm ERR! code EAI_AGAIN npm ERR! errno EAI_AGAIN npm ERR! request to https://registry.npmjs.org/cordova failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org:443 npm ERR! code ...
1
vote
2answers
1k views

How do I run a global npm program when an ubuntu program has the same name?

I installed npm-check-updates using sudo npm install -g npm-check-updates. To use it I need to run ncu in the folder I want to check with it. However, it appears there is a weather program in Ubuntu ...
0
votes
0answers
90 views

running @angular/cli@6.1.3 commands in terminal throws error “/usr/bin/env: ‘node’: No such file or directory”

I have installed angular using sudo npm install -g @angular/cli -d I have uploaded the full log of the installation. There occurred a few warnings during the installation, but as far as I could ...
7
votes
1answer
4k views

Ubuntu 18.04 LTS Server npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed [duplicate]

My environment is a little different. I updated from 14.04 to 16.04 to 18.04. My desktop PC 18.04 has npm installed. $ npm -version 3.5.2 # nodejs -v v8.10.0 # apt install npm Reading package ...
0
votes
0answers
121 views

Ubuntu Cannot reinstall coreutils

I deleted the usr/bin/env file in my Ubuntu16.04 by mistake. Everytime i try to reinstall coreutils with this command: sudo apt-get install --reinstall coreutils, i get this error: Reinstallation of ...
0
votes
0answers
43 views

I have downloaded gulp but i am getting the following error

sudo gulp data_local [sudo] password for mdvenkatesh: sudo: gulp: command not found But When the gulp version is showing fine gulp -v [13:22:33] CLI version 2.0.1 [13:22:33] Local version 3.9.1 ...
0
votes
0answers
332 views

Why am I getting Segmentation Fault error during Angular CLI installation? [duplicate]

I am trying to install Angular CLI using npm on my Ubuntu 18.04 LTS. Whenever I run sudo npm install -g @angular/cli the shell returns Segmentation Fault(core dumped). I never ran into this problem ...
2
votes
1answer
197 views

How to concatenate variable with array element

What I want to achieve is to automatically install NPM packages, so I created a separate variable which holds "sudo npm install" and iterating over an array which has the package name. Facing error ...
0
votes
0answers
200 views

Could not find Java jdk in a directory that has been renamed

I am trying to built a React Native app using Ubuntu 16.04. When I try to run npm run android in the terminal I get this error ERROR: JAVA_HOME is set to an invalid directory: /home/duong/git/Java/...
0
votes
0answers
42 views

i am unable to install node version 6

sudo curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - when trying to install i am getting following error Installing the NodeSource Node.js 6.x LTS Boron repo... Populating apt-get ...
1
vote
0answers
228 views

Can't install NPM packages

when i ran npm install command npm i -g yarn It produce following output npm ERR! code EPROTO npm ERR! errno EPROTO npm ERR! request to https://registry.npmjs.org/yarn failed, reason: write EPROTO ...
1
vote
2answers
664 views

npm issue while trying to npm install dependencies

pkcs11js@1.0.16 install /home/ubuntu/blockchainpoc/hlpoc/node_modules/pkcs11js > node-gyp rebuild gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/ubuntu/...
1
vote
2answers
4k views

“/usr/bin/env: ‘node’: No such file or directory” even though it is in PATH

I'm trying to get nodejs working. However, it tells me that node is not in my bin even though I downloaded the binary and added the location to my path. > echo $PATH ...:/home/jvdh/node-v8.11.2-...
1
vote
0answers
363 views

Installing node-sass on ubuntu 18.04 returns error

I'm trying to install node-sass on ubuntu, beacuse I want to use sass-autocompile, but even when I try to compile that sass file in atom (just when I save it) It returns this error: `fs.js:904 ...
2
votes
1answer
99 views

Error while initiating Yeoman generator

When I was trying Yeoman generator using this link, I got the following error message: root@SYSGSOFT:/home/sysg_soft# yo flask-api /usr/lib/node_modules/yo/node_modules/insight/node_modules/...
0
votes
1answer
176 views

Error while installing Cordova

I am getting this error while installing Cordova: npm http GET https://registry.npmjs.org/cordova npm http GET https://registry.npmjs.org/cordova npm http GET https://registry.npmjs.org/cordova npm ...
3
votes
1answer
6k views

How to remove npm and reinstall npm completely in 18.04?

I was using ubuntu16.04 upgraded to ubuntu18.04. followed some tutorial to remove npm, but now stuck. I have: ~$ npm list -g bash: /usr/bin/npm: No such file or directory and: sudo apt-get ...
4
votes
3answers
5k views

NPM is incorrect version on latest Ubuntu (18.04) installation

Normal installation would be sudo apt install nodejs to install Node.js and then sudo apt install npm to install Node Package Manager. However, upon doing so, npm -v says 3.5.2. To upgrade normally, I ...
1
vote
0answers
365 views

“Illegal Instruction (core dumped)” lubuntu 17.10 on development software (node, npm, sublime text)

I am running a old machine with ubuntu 17.10 installed, on an old AMD Athlon XP 19000+ with 1,5Gb RAM. When trying to use some development applications in the terminal, like: node (NodeJS) npm (Node ...
1
vote
0answers
712 views

How to change permission of npm directory in ubuntu 16.04

I was getting an EACCES error when trying to run the following command : npm i -g node-static the detail of error is as follows: npm WARN checkPermissions Missing write access to /usr/local/node- ...
2
votes
2answers
373 views

Why do I see different versions of node and nodejs

I ran the following commands to install the stable version of node sudo npm cache clean -f sudo npm install -g n sudo npm install -g n Now, when I run node -v, I see v10.0.0, whereas nodejs -v ...
0
votes
1answer
296 views

AngularCLI serving problem on Ubuntu 16.04

I've already installed AngularCLI with npm and then I try serving ng serve --open in the terminal. But the terminal shows an empty screen and then does nothing. What can I do to serve my Angular app?
0
votes
0answers
152 views

Ubuntu 16.04.4 LTS can't install node.js ws

When attempting to install ws (websocket library) to a project, get the following errors: npm install -i ws npm ERR! code EINVALIDTYPE npm ERR! typeerror Error: Argument #2: Expected string or ...
0
votes
1answer
310 views

installing electron through npm error [duplicate]

I was trying to install Electron using NPM, and this showed up: adi@LMToshi2 ~ $ npm install electron --save-dev --save-exact npm ERR! Linux 4.8.0-53-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/...
2
votes
3answers
734 views

react-native watchman error, after npm start on Ubuntu 17.10.

I am trying to start project of React-native on Ubuntu, node,npm are at latest versions. according to documentation I have Install all official create-react-native-app and its dependencies. here is ...
2
votes
0answers
821 views

How can I get yarn to use the right version of Node?

I am new to Node, JavaScript etc. and want to try messing with the code of Signal. For this I need a specific version of Node. I did this (on Ubuntu 16.04) using the following procedure: wget https://...
0
votes
0answers
13 views

nodejs version bug [duplicate]

I'm currently trying to install nodejs on Ubuntu 16.04, but it doesn't work. Here's the problem: root@ubuntu-s-1vcpu-1gb-fra1-01:~# nodejs -v The program 'nodejs' is currently not installed. You can ...
1
vote
0answers
269 views

Error when updating npm : missing node-gyp module

I am trying to install nodejs on my machine (ubuntu 14.04). What I did so far, without error : curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs sudo apt-...
0
votes
0answers
656 views

Not able to install nodejs , npm and webpack packages [duplicate]

I am trying to install nodejs and npm packages on Ubuntu 16.04, and getting same errors every time. I have tried commands listed below - 1. sudo apt-get update sudo apt-get install nodejs sudo apt-...
0
votes
0answers
59 views

permissions of a folder to change to use grunt

I know it must have been answered somewhere but I cannot find it. I want to install Grunt in a project directory, on my computer, on a virtual volume (I am in dual boot with Windows, and the ...
0
votes
1answer
54 views

How to add proxy exemption for a domain in ubuntu?

I have just appended this URL https://registry.npmjs.org intono_proxy in etc\environment file which I want to exempt from proxy restriction, it looks lie this. no_proxy=localhost,https://registry....
0
votes
0answers
579 views

Installing react with npm issue

When I run: npm install react It gives me an dependency error: └── UNMET PEER DEPENDENCY react@15.6.2 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/...
1
vote
1answer
2k views

How to uninstall a node.js module?

I have a Ubuntu 16.04 server with a Drupal 8.4 site I want to install Node.js for my site. 1) I connected to my server with root and I entered the following command at the root of my server : root@...