I am new to NPM and I have a beginner question. I was going through an article and came across the following of what the author has to say:
Instead of doing:
$ cd /path/to/the/project
$ npm install mongoose
$ npm install express
$ npm install jade
Create a package.json file in the root of your app dir.
$ cd /path/to/the/project
$ touch package.json
package.json:
{
    "name": "your app name"
  , "version": "0.0.1"
  , "private": true
  , "dependencies": {
      "express": ">=2.5.0"
    , "jade": ">= 0.16.4"
    , "mongoose": ">=2.3.10"
  }
}
Then type in the following command all your packages will be installed.
$ npm install -l
Difficulty
Now I really like the idea of doing the following:
{
    "name": "your app name"
  , "version": "0.0.1"
  , "private": true
  , "dependencies": {
      "express": ">=2.5.0"
    , "jade": ">= 0.16.4"
    , "mongoose": ">=2.3.10"
  }
}
But what if instead of saying ">=2.5.0", I want it it be the latest version ? I.E. I want the same version as when I would go to the Git directory and press the download button. secondly, how do I know the specific name of the package on npm. Eg if I check the slider plugin here, I see the command to install it is:
npm install slider
So does that mean that if I was installing the above plugin using package.json, my package.json would look like below:
{
        "name": "your app name"
      , "version": "0.0.1"
      , "private": true
      , "dependencies": {
          "slider": "whatever"  // is this correct ??
      }
    }
My questions are:
- how do I get the latest current stable version of a jQuery plugin
- how do I get the naming right for the package.json file.
 
     
     
     
    