Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
525 votes
19 answers
259k views

Cannot install packages using node package manager in Ubuntu

NodeJS interpreter name(node) on Ubuntu has been renamed to nodejs because of a name conflict with another package. Here's what the readme. Debian says: The upstream name for the Node.js ...
Sayem's user avatar
  • 6,099
452 votes
25 answers
452k views

Yarn install command error No such file or directory: 'install'

I am installing sylius bundle and while install sylius I need to run yarn install So While I run the command: yarn install I get the error: ERROR: [Errno 2] No such file or directory: 'install'
Ricky ponting's user avatar
256 votes
34 answers
357k views

When I run `npm install`, it returns with `ERR! code EINTEGRITY` (npm 5.3.0)

I am getting this error while running sudo npm install. On my server, npm was installed earlier. I've tried to delete the package-lock.json file, and ran npm cache clean --force, but it didn't work. ...
SANITH's user avatar
  • 3,227
212 votes
23 answers
237k views

Install Node.js on Ubuntu

I'm trying install Node.js on Ubuntu 12.10 (Quantal Quetzal), but the terminal shows me an error about lost packages. I tried with this: sudo apt-get install python-software-properties sudo add-apt-...
David Aguilar's user avatar
164 votes
22 answers
357k views

How to update npm

I'm trying to install mean.io boilerplate. It fails when running sudo npm install -g meanio@latest. Prior to failing it notes that it 'wants' npm version 1.4.x, whereas I have 1.2.18 installed. So I ...
user3567174's user avatar
  • 1,978
145 votes
19 answers
527k views

How do I resolve `The following packages have unmet dependencies`

I was using this script to install basic software, but had to interrupt because of slow internet speed. Now when I hit $ sudo apt-get install npm , I get following error yask123@yaskslaptop:~$ sudo ...
yask's user avatar
  • 4,148
142 votes
9 answers
154k views

Why is WSL extremely slow when compared with native Windows NPM/Yarn processing?

I am working with WSL a lot lately because I need some native UNIX tools (and emulators aren't good enough). I noticed that the speed difference when working with NPM/Yarn is incredible. I conducted a ...
WrRaThY's user avatar
  • 1,868
141 votes
17 answers
99k views

NPM modules won't install globally without sudo

I have just reinstalled Ubuntu 12.04 LTS, and before anything else i did these steps: Installed Node via package manager with the following script sudo apt-get update sudo apt-get install python-...
HeberLZ's user avatar
  • 13.7k
91 votes
1 answer
82k views

Where do global npm packages get installed on Ubuntu [closed]

Where is the default global node_modules folder on Ubuntu. For example where would this get installed: npm install -g gulp
rob's user avatar
  • 18.4k
85 votes
7 answers
64k views

`npm install` ends with "Killed"

I'm trying to run Telescope (a meteor app) on an Ubuntu 16.04 server. I follow the instructions in the readme: curl https://install.meteor.com/ | sh git clone [email protected]:TelescopeJS/Telescope.git ...
kramer65's user avatar
  • 52.7k
85 votes
6 answers
44k views

list all globally installed modules with one command in ubuntu

I'm working on ubuntu 14.04, Is there any way to print all global modules (installed using npm) to the command line. How can I do this?
Muhsin Keloth's user avatar
85 votes
9 answers
238k views

webpack command not working

I am new to Node Js and Webpack. I tried to start a project with module-loaders. Firstly, I installed nodeJs and NPM and created a new directory called tutorial. I used the command prompt to cd into ...
Mohan's user avatar
  • 4,777
78 votes
13 answers
76k views

libsass bindings not found when using node-sass in nodejs

I want to use the node-sass module in my node.js v0.12 application to benefit from the performance of libsass. I executed npm i node-sass to install the module, no errors so far. Now the mess starts: ...
TorbenJ's user avatar
  • 4,532
77 votes
14 answers
65k views

After installing npm on WSL Ubuntu 20.04 I get the message "/usr/bin/env: ‘bash\r’: No such file or directory"

I see the following message when running the npm install or npm command from the terminal. Executing node works as expected. > npm install /usr/bin/env: ‘bash\r’: No such file or directory
Zymotik's user avatar
  • 7,057
71 votes
6 answers
165k views

What is the default location of PM2 log files?

I'm trying to find out where PM2 saves the log files by default? I'm working with a Linux Ubuntu 16.04 server and I've installed it globally with npm i pm2 -g.
Dave's user avatar
  • 2,072
51 votes
11 answers
94k views

ENOTEMPTY: directory not empty, rename '' -> '' (JavaScript + NPM + Ubuntu server)

Alright, so I've been making a bot for a popular Teamspeak-like program called discord. I'm running the bot on an Ubuntu server, and use NPM install to install various modules. Currently, the local ...
user avatar
46 votes
20 answers
110k views

npm "failed to parse json"

When I'm trying to install express with npm I always get the following error: Failed to parse json No data, empty input at 1:1 File: /root/.npm/inherits/2.0.1/package/package.json Failed to parse ...
kovogel's user avatar
  • 1,030
42 votes
14 answers
79k views

Error installing node-gyp on ubuntu

npm http 200 https://registry.npmjs.org/weak/-/weak-0.2.2.tgz npm http GET https://registry.npmjs.org/bindings npm http 304 https://registry.npmjs.org/bindings > [email protected] install node_modules/...
Pratik Mandrekar's user avatar
37 votes
2 answers
50k views

yarn error "EACCESS: permission denied, scandir '/home/ubuntu/.config/yarn/link'"

Whenever I try something with yarn on Ubuntu 16.04 server. It gives an error. I am currently using nodejs v8.10.0 yarn install v1.5.1 error An unexpected error occurred: "EACCES: permission denied,...
Astro Lee's user avatar
  • 421
36 votes
4 answers
39k views

npm install without symlinks option not working

I setup a development environment with Windows 8 and Ubuntu as a virtual machine. For that I use VirtualBox. I also manage to create a shared folder in VirtualBox. In this shared folder I try to ...
Bastien D's user avatar
  • 1,445
35 votes
7 answers
12k views

Nodejs + npm, installing modules on ntfs partition

I have a problem when installing npm modules. NodeJS is installed on Ubuntu 11.10 running on Virtual Box on Windows host. My project files are on NTFS partition (I have to share them with windows). ...
Sosnowski's user avatar
  • 351
33 votes
2 answers
21k views

Why do I get old versions of nodejs and npm when installing with apt-get?

I have executed the following command in Ubuntu 14.04 64-bit. sudo apt-get update sudo apt-get install nodejs modejs-legacy npm I have the versions npm -v 1.3.10 nodejs -v v0.10.25 These are ...
user1283776's user avatar
  • 21.2k
31 votes
11 answers
138k views

yarn command not found after installing via npm

As per the yarn installation for yarn v2, they want you to install using npm install -g yarn. So I ran sudo npm install -g yarn on Ubuntu 20.04. But after I do that, it says command not found. ❯ ...
cclloyd's user avatar
  • 8,735
24 votes
5 answers
16k views

Why can't I install phantomjs (Error: EACCES: permission denied)?

I had phantomjs installed on this machine before, but now it can't find the executable. So I uninstalled it (npm uninstall phantomjs, npm uninstall phantomjs-prebuild). But installing it doesn't work....
Martin Thoma's user avatar
23 votes
4 answers
19k views

Why does Ubuntu have old versions of nodejs and npm in their apt-get package manager?

When I install nodejs and npm with apt-get sudo apt-get update sudo apt-get install nodejs modejs-legacy npm I have the versions I get the following versions npm -v 1.3.10 nodejs -v v0.10.25 I ...
user1283776's user avatar
  • 21.2k
21 votes
2 answers
30k views

Ubuntu - nodejs - npm install -g > Error: EACCES: permission denied, mkdir

Was having a issue installing a NodeJS npm package. On a Digital-Ocean Droplet Ubuntu (14.04) server. npm install -g PACKAGE-NAME I even tried with sudo had the same error. Error message: ...
K-G's user avatar
  • 2,882
21 votes
3 answers
32k views

System limit for number of file watchers reached

I try to run my project on the ubuntu server. command: npm run production it calls webpack-dev-server --config webpack.prod.js --mode production --inline --progress After it builds I get a lot of ...
Mediator's user avatar
  • 15.2k
20 votes
2 answers
21k views

install express with npm

I recently installed nodejs version 0.10.26 on ubuntu 64 bit. node -v and npm -v commands run fine and I can see the correct versions. When I do a $ sudo npm install -g express the installation goes ...
trailblazer's user avatar
  • 1,431
20 votes
16 answers
82k views

create-react-app says "Create React App requires Node 14 or higher." Fixing node gives "npm does not support Node.js v10.19.0"

I was trying to create a react app, but got following $ npx create-react-app react-demo npx: installed 67 in 6.045s You are running Node 10.19.0. Create React App requires Node 14 or higher. Please ...
Rnj's user avatar
  • 1,169
20 votes
8 answers
28k views

Unknown error: SyntaxError: Unexpected token 'export' on ng command

I'm trying to learn Angular I've followed the steps here: https://angular.io/guide/setup-local to get it setup on Ubuntu 18.04.5 LTS When I try to create a new project with ng new I get an error: $ ...
Jeff's user avatar
  • 480
19 votes
4 answers
7k views

NPM Search: Running out of memory

On ubuntu 14.10 (3.13.0-76-generic #120-Ubuntu SMP Mon Jan 18 15:59:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux), when I do: sudo npm search yeoman-generator I get the following error: npm WARN ...
Romaan's user avatar
  • 2,707
17 votes
2 answers
34k views

globally installed npm-packages not working [closed]

local npm-packages work as predicted, but it seems impossible for me to get globally-installed packages running. It doesn't even throw any error, it's just not doing anything ( express, coffee, etc.. )...
tibtob's user avatar
  • 241
16 votes
2 answers
18k views

understanding the output of `nvm ls`. Is everything installed properly?

I think I may have done something untoward during the install process of nodejs and nvm. When I start bash or open a terminal I get: :~$ bash N/A: version "N/A -> N/A" is not yet installed. You ...
Madivad's user avatar
  • 3,199
15 votes
2 answers
61k views

npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! While resolving: @nestjs/[email protected]

While installing node_modules, I use the --legacy-peer-deps or --force flags. This works fine on windows on my system locally, but it doesn't work while deploying the project in ubuntu server! This is ...
Faraz Khan's user avatar
15 votes
9 answers
73k views

nvm ls does not list specific installed version numbers

I recently ran an npm update that broke my Vue app. As a result, I am trying to revert my server to the previous version of Node/npm that it was using. However, when I run nvm ls I get the following ...
mikeym's user avatar
  • 6,093
15 votes
3 answers
40k views

Error: Cannot find module 'mkdirp'

while i trying to run a nodeJS file am getting following error in my Ubuntu machine node.js:201 throw e; // process.nextTick error, or 'error' event on first tick ^ Error: ...
Sush's user avatar
  • 1,447
15 votes
3 answers
12k views

Installing Sharp /usr/include/vips/vips8:35:25: fatal error: glib-object.h

I am trying to install sharp on Ubuntu 16.04 LTS. I originally did not have vips, so I installed sudo apt-get install libvips-dev That fixed the first error, but now I get another error that I ...
Rachel's user avatar
  • 151
14 votes
6 answers
15k views

How can I install npm and Node.js on Ubuntu?

I have installed Node.js by: curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs Installation is done well and when I try to install npm, sudo apt-get ...
godot's user avatar
  • 3,525
13 votes
3 answers
13k views

Install Node 6.9 on Ubuntu Zesty 17.04

I want to install a newest version of NodeJS on Ubuntu Zesty 17.04. But whether using apt-get or trying to download it from nodesource ppa, I always have the version 4.7.2. Apt-get sudo apt-get ...
Radouane ROUFID's user avatar
13 votes
1 answer
2k views

How do I cache global NPM packages on Travis CI?

Locally installed packages are cached via: # .travis.yml ... cache: directories: - node_modules ... But how do I cache globally installed packages ($ npm install -g <...>) to speed up my ...
Jace Browning's user avatar
13 votes
3 answers
18k views

Jenkins suddenly showing "wrapper script does not seem to be touching the log file" and times out with a FAILURE message

I've been using Jenkins for years in a LEMP stack environment. Once I upgraded it to 2.164.3 with all the plugins installed, most of the non-heavy commands are running just fine, however, commands ...
Ghassan Zein's user avatar
  • 4,159
12 votes
3 answers
13k views

permission denied error with npm install

Just made a fresh reinstall of my ubuntu and installed necessarily things such as nodejs npm. If I cloned project and tried sudo npm install I got this error. Had someone same problem? using node: 8....
johnny04501's user avatar
11 votes
6 answers
15k views

Express doesn't work on ubuntu

I'm new with nodejs and trying to learn it. I have installed node framework express as global module by command: $ sudo npm install express -g This works correctly and I have it in /usr/lib/...
Andrii Tarykin's user avatar
11 votes
2 answers
21k views

npm install failing with 404 error (/@fortawesome%2fpro-regular-svg-icons - Not found) althoug token is set

After fixing the failure from the private package not found in this link. I am stuck at the error ```font awesome`` library not found. Below is the error message details: npm ERR! code E404 npm ERR! ...
Rando Shtishi's user avatar
11 votes
2 answers
15k views

Node.js : NPM Install Fails

I get this error if I run curl http://npmjs.org/install.sh | sh even with sudo. cirk@cirk-Parallels-Virtual-Platform:~$ curl http://npmjs.org/install.sh | sh % Total % Received % Xferd ...
Adam Halasz's user avatar
  • 58.1k
11 votes
1 answer
14k views

What versions of Node.js and npm are compatible with gulp 3.9.1?

I have Node v14.19.0, NPM v6.14.16 and gulp CLI version 2.3.0 along with the Local version 3.9.1 installed on my Computer (the OS is Ubuntu 22.04). The issue is, when I run any gulp command I'm ...
afhamu's user avatar
  • 1,010
11 votes
2 answers
1k views

Error while installing yeoman

I am trying to install yo on my ubuntu v16.4 LTS but i get this error: npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm npm ...
Kob_24's user avatar
  • 612
10 votes
4 answers
30k views

NPM install permission denied error using root user

So I've made a fresh installation of npm/node on my local machine using NVM using root user and everything looks fine, now my issue is when I tried to install using npm install --unsafe-perm -verbose ...
PenAndPapers's user avatar
  • 2,098
10 votes
1 answer
2k views

Permission denied error while attempting to install elm with sudo on ubuntu

I am attempting to install elm on my machine (Ubuntu 16.04.2 LTS). Running $ npm install -g elm as per the instructions at that link, I get a permission error. So I try again with sudo, i.e. $ sudo ...
mherzl's user avatar
  • 5,994
10 votes
1 answer
8k views

How to install particular yarn version in ubuntu

How to install yarn version 0.27.5 in ubuntu ? since the lattest update yarn version is 1.2.1.
user3547367's user avatar

1
2 3 4 5
15