0

2 questions

  • What is the difference between both

  • how can i change a globally installed grunt-node inspector to use >=

    "grunt-node-inspector": "~0.2.0"
    
    "grunt-node-inspector": ">=0.2.0"
    

npm -v grunt-node-inspector comes out to be 3.6.0

how can i change it to >=0.2.0

Ankur Marwaha
  • 1,613
  • 2
  • 15
  • 30
  • Does this answer your question? [What's the difference between tilde(~) and caret(^) in package.json?](https://stackoverflow.com/questions/22343224/whats-the-difference-between-tilde-and-caret-in-package-json) – Leandro Lima Sep 01 '23 at 13:14

1 Answers1

2

'~' or tilde means Approximately equivalent to version. Matches the most recent minor version (the middle number). ~0.2.0 will be equivalent to all 0.2.* versions but not 0.3.0. And '>=version' means greater than or equal to

Refer https://docs.npmjs.com/files/package.json

Sandesh K
  • 919
  • 5
  • 10
  • Can you tell how can i change the version of globally installed package ? This is the problem i am facing https://github.com/node-inspector/v8-debug/issues/7 and the solution from "russfrisch" is what i need to try. – Ankur Marwaha Aug 19 '16 at 05:54
  • To find out which packages need to be updated, you can use (Without quotes) >> 'npm outdated -g --depth=0' to update global packages use (Without quotes) >> 'npm update -g' – Sandesh K Aug 19 '16 at 05:57