linecas.blogg.se

Nvm for mac
Nvm for mac





nvm for mac

We will be using a Node.js version manager, NVM, to enable sudo free usage of any node or npm based commands. Today we will look at how to clean up and reinstall Node.js so that there is no need to use elevated permissions as a bonus, we will also gain the ability to jump between Node.js versions with ease. Requiring the need for sudo on Unix-like operating systems when using Node.js at the command line is not only laborious but also likely to lead to all sorts of strange issues for certain globally installed Node.js modules. There are many ways to install Node.js, from operating system package managers to single version installers you can even download and build from source! Unfortunately, the vast majority of installations can put Node.js in a location that requires the need for elevated permissions when using either the node or npm commands on the command line or via tools and scripts.

nvm for mac nvm for mac

Using NVM to enable sudo free usage of any node or npm based commands







Nvm for mac