3

I am using Kubuntu. I am looking into installing a plugin to help in javascript. This seems to be good jshint but it mention npm install
What is this? My understanding is that in Kubuntu I should only use sudo apt-get to install packages and not yum or anything else. What is this npm? Should I use it or will I have conflict issues with my package manager?

  • What is your goal here? From the tags you used it seems you are just looking to use it as an editor plugin for syntax highlighting/error detection. What version of Kubuntu are you running? – Seth Aug 22 '14 at 18:17
  • @Seth:You are right. Ubunty 13.10 – Jim Aug 22 '14 at 18:34
1

Npm is a node.js module/package manager. It can work without root privileges, installing into your home directory. As a consequence, unless you use npm install -g (as root, globally), there won't be any conflicts with the native package management system.

  • What is the difference with -g? – Jim Aug 22 '14 at 18:35
  • 2
    @Jim -g installs it globally for all users. – Seth Aug 22 '14 at 18:37
0

npm is node.js package manager. First you need to install npm on your system.

Add repository first

sudo add-apt-repository ppa:chris-lea/node.js

Then install npm

apt-get update
apt-get install npm

Then you can install the module with npm as the site suggests.

npm install jshint

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.