Questions tagged [sudo]

The "sudo" command is a specialized tool found in Unix and Unix-like operating systems that enables users to execute programs with the elevated security permissions of a different user, typically the superuser or root. The term "sudo" stands for "substitute user do," signifying the ability to carry out commands as if initiated by another user.

Prevent EACCES issues with npm/node when using Ubuntu?

Setting up 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 ...

Running the command with sudo does not yield any results, but it successfully executes after using "sudo su"

Upon trying to execute the command, I encounter a "command not found" error in my bash terminal: $ npm -v -bash: npm: command not found The same error occurs when using sudo: $ sudo npm -v sudo: npm: command not found However, running "sudo su" first a ...

In Ubuntu (using nvm), when attempting to install npm packages with `npm install`, you may encounter the need for `

I am a new developer and recently encountered a permissions issue after mistakenly installing sudo npm globally. With the help of someone, we used rm -Rf to remove all node files, node_modules, and npm files which fixed my original problem (not being able ...

Error in CentOS - The effective user ID is not 0. Have you properly installed sudo as setuid root?

After coming across a similar question with the same headline, I realized that my situation is slightly different. While setting up a new project, I encountered an issue with installing nodejs. It seemed to only work when using sudo, for example, sudo npm ...

Experiencing difficulties while attempting to utilize Appium on Ubuntu, encountering a node.js:134 error

I installed nodejs by using the following command: sudo apt-get install -y nodejs Similarly, I installed appium with the command below: sudo npm install -g appium Despite the warning on the appium page advising against using sudo, I had to use it becau ...

In what scenarios is it best to employ `sudo` while executing `npm install -g cordova`?

Currently, I am browsing through the PhoneGap / Cordova CLI documentation found at . It suggests installing Cordova CLI using sudo. $ sudo npm install -g cordova Nevertheless, my linux colleagues have reprimanded me for utilizing sudo excessively. Do I r ...

Troubleshooting on Mac OSX for EACCES: permission denied...Access to this file is restricted

Attempting to start a new project using the Gatsby template by running the command gatsby new website-public https://github.com/gatsbyjs/gatsby-starter-default in the Terminal window is resulting in an ongoing error: gatsby new website-public https://git ...

What steps should I follow to successfully install ffmpeg-binaries without encountering any error messages?

Every time I attempt to install ffmpeg-libraries, I encounter the same error message. My goal is to create a music bot for discord.js and for that, I need ffmpeg-libraries. Despite reinstalling node.js (I am using the latest stable version), the process r ...

Incorporating sudo privileges within a makefile

Currently, I am situated behind a proxy in the realm of bash. My HTTP_PROXY and HTTPS_PROXY environment variables are set to the proxy. In order to successfully install something under sudo, such as pip, I must use the -E flag with sudo like this: sudo -E ...

Could you explain the distinction between npm install and sudo npm install?

I recently switched to using linux. To install typescript, I ran the following command: npm i typescript Although there were no errors during the installation process, when I checked the version by typing tsc --version, I encountered the error message -bas ...

ERROR: The installation of Node modules has failed during the initialization process

Encountering permission errors while attempting to create a Reaction project: ➜ myproject sudo npm install npm@latest -g [sudo] Password for julien: /usr/local/bin/npx -> /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npm -> /usr/l ...

Whenever I attempt to run `npm install`, I encounter the frustrating error message "access denied."

I'm facing an issue while installing a new project, and I keep getting the error message shown below after running npm install. I've already attempted a solution provided here, but it didn't work. Running the suggested commands in the termin ...