Now, you can install anything that’s available in the NPM repositories. $ node -v Install With NPMīefore you get started with NPM, install some development packages so NPM won’t have a problem when it encounters a source package. You can check that it’s there with the `-v` flag. Make sure that Node is installed and working properly. So, now that you have the repository set up, you can install NodeJS normally through `apt`. Just run the script separately instead of using the pipe. If not, you either need to run the script as root(not usually a good idea). You should probably have `sudo` installed. The script detects your distribution and sets up the repository for you. It’s actually what’s recommended by the NodeJS Foundation. The NodeJS Foundation recommends a Debian repository hosted by a popular NodeJS hosting service. It’s one of the top web development tools, and when paired with the Express framework, it’s solid direct competition to the likes of PHP and Ruby on Rails.ĭebian provides NodeJS in its repositories, but it’s usually extremely out-of-date. $ – requires given linux commands to be executed as a regular non-privileged user.# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command. This guide requires a functional install of Debian Stretch with root privileges. Install the latest stable release of NodeJS on Debian Stretch.
0 Comments
Leave a Reply. |