Tutorial: Sudo commands that you should know as a web developer

We’re pleased to announce that the Codesphere IDE now supports sudo! If you’ve ever worked in a Linux operating system, you’re probably…

April 1, 2021 2 Min Read
Tutorial: Sudo commands that you should know as a web developer
Tutorial: Sudo commands that you should know as a web developer

Codesphere

From everyone in the Codesphere Team:)

Table of Contents

We’re pleased to announce that the Codesphere IDE now supports sudo!
If you’ve ever worked in a Linux operating system, you’re probably familiar with the “sudo” command.

Sudo is a program for Unix-like systems that allows users to run programs with privileges of another user.

In the following article, we will show you some common sudo commands that you may come across as a web developer.

Updating the npm version globally

command: sudo npm i -g npm

Run sudo npm i -g npm in your terminal to update the npm version globally.

Changing the Node.js version

command: sudo n <version>

Removing versions of Node.js

command: sudo n rm <version>

If you might want to remove an old version of Node.js, just run

sudo n rm <version>.

Installing packages globally

command: sudo npm i -g <package_name>

Node.js has great package management, so installing packages globally is very simple. Sometimes installing packages globally gives you the ability to use NPM packages locally as well as globally, such as within other Node.js projects.

In the following example, we are installing nodemon and eslint globally.

Installing the create-react-app package globally

command: sudo npm i -g create-react-app

To install the create-react-app package globally use the command mentioned above.


That’s all for now, we hope that you enjoyed the read! Our team is working hard to make Codesphere easier and even more enjoyable for you.

Thanks for using Codesphere.
Happy Coding!

About the Author

Tutorial: Sudo commands that you should know as a web developer

Codesphere

From everyone in the Codesphere Team:)

We are building the next generation of Cloud, combining Infrastructure and IDE in one place, enabling a seamless DevEx and eliminating the need for DevOps specialists.

More Posts

Cloud Native Meetup Recap

Cloud Native Meetup Recap

Karlsruhe offers a vibrant tech scene and we are proud to be part of a group organizing expert & community meetups like this one.

Full Metal

Full Metal

Buying a used server on ebay kleinanzeigen and preparing it to be cloudified? Follow along to see what it takes to get a piece of metal running.

Structure PDF Table Data for AI Applications with GMFT

Structure PDF Table Data for AI Applications with GMFT

GMFT is a fast, lightweight toolkit for extracting tables from PDFs into formats like CSV, JSON, and Pandas DataFrames. Leveraging Microsoft's Table Transformer, GMFT efficiently processes both text and image tables, ensuring high performance for reliable data extraction.