Stop EACCES errors with npm/node on Ubuntu?
NickName:A T Ask DateTime:2014-08-11T12:52:27

Stop EACCES errors with npm/node on Ubuntu?

Setup the system environment

$ lsb_release -a 2> /dev/null | grep Desc
Description:    Ubuntu 14.04.1 LTS

$ sudo apt-get install build-essential
$ sudo add-apt-repository ppa:chris-lea/node.js && sudo apt-get update
$ sudo apt-get install nodejs && sudo npm update -g npm
$ sudo npm install -g yo generator-angular && cd /tmp && mkdir b && cd $_

Generate (yeoman)

/tmp/b $ yo angular
[?] Would you like to use Sass (with Compass)? No
[?] Would you like to include Bootstrap? No
[?] Which modules would you like to include? 
 ⬢ angular-animate.js
 ⬢ angular-cookies.js
 ⬡ angular-resource.js
 ⬡ angular-route.js
 ⬢ angular-sanitize.js
 ⬢ angular-touch.js

Errors

npm-debug.log


Is there some trick—short of chowning /usr/lib/node_modules—that will stop these errors from occuring?

Copyright Notice:Content Author:「A T」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/25236042/stop-eacces-errors-with-npm-node-on-ubuntu

More about “Stop EACCES errors with npm/node on Ubuntu?” related questions

Stop EACCES errors with npm/node on Ubuntu?

Setup the system environment $ lsb_release -a 2> /dev/null | grep Desc Description: Ubuntu 14.04.1 LTS $ sudo apt-get install build-essential $ sudo add-apt-repository ppa:chris-lea/node.js...

Show Detail

Will installing node.js + npm on macOS using Homebrew prevent EACCES permission errors?

Installing node.js and npm on macOS can cause EACCES permission errors when trying to install packages globally. A workaround is to reinstall npm with a node version manager (according to: https://...

Show Detail

Error: EACCES: permission denied NPM Ubuntu Server

I am running an Ubuntu EC2 server and followed the tutorial provided by AWS to install nvm and node, but when I try to run npm install, I'm thrown an error: Error: EACCES: permission denied, acces...

Show Detail

Running NPM on remote linked folder is causing EACCES: permission denied

Let me describe my dev. Platform: I'm using Macbook Pro with High Sierra. For development purposes, I installed virtualbox and all dev. related server apps are inside of it (like apache,postgresql,

Show Detail

Installing node using npm fails with EACCES error

I'm trying to install node on MacOS using the following command: sudo npm install -g node This yields the following output: > [email protected] preinstall /usr/local/lib/node_modules/node-darwin-x...

Show Detail

How to properly fix npm ERR! from permissions on Ubuntu on my path

I ran npm install from this path in my jenkins server: ubuntu@IP:/var/lib/jenkins/workspace/morningharwood$ npm install It returned a big list of these same errors: npm WARN engine [email protected]...

Show Detail

Errors Installing Strongloop Ubuntu 14.04

I'm getting all these errors. I'm using sudo npm install -g strongloop and also tried sudo npm --unsafe-perm install -strongloop but still get these errors below. This is on an AWS server by the w...

Show Detail

npm installation and location of npm files causing issue on Windows 10: leads to error: npm ERR! code EACCES (among other errors)

So I am trying to follow along on a Youtube tutorial for a react project. (I'm on Windows 10, there are other solutions that explain how to solve this on linux and mac, which could work because I'm

Show Detail

EACCES: permission denied, mkdir '/node_modules/node-sass/build' while running npm install on ubuntu

i have an angular 4 app and i want to run it on ubuntu. i copied all project files , package.json and package-lock.json to a folder in winscp but i didn't copy node_modules! now when i run npm inst...

Show Detail

UBUNTU : NPM EACCES error though I changed folder ownership

I have been trying to install expo-cli. Facing several permission denied error. Here are the steps I followed: changed ownership of /usr/lib/node_modules from root to anurag(my_current_user) changed

Show Detail