Is it possible to install npm package only if it has not been already installed?
npm
I need this to speed up test on CircleCI, but when I run npm inst
npm inst
[ $(node -p "try{require('protractor/package.json').version}catch(e){}") != "2.1.0" ] && npm install grunt