Currently, I'm attempting to run jshint on a few javascript files. However, I am encountering an issue where the local npm install of jshint is not functioning as expected.
Upon checking, the package is indeed present:
$ npm list --depth=0
<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0d79687e796c7d7d4d3c233d233d">[email protected]</a> /Users/me/workspace/testapp
└── <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="016b7269686f7541332f382f32">[email protected]</a>
However, here is the error message that I am encountering:
$ npm run jshint
npm ERR! Darwin 15.4.0
npm ERR! argv "/usr/local/Cellar/node/5.6.0/bin/node" "/usr/local/bin/npm" "run" "jshint"
npm ERR! node v5.6.0
npm ERR! npm v3.6.0
npm ERR! missing script: jshint
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/me/workspace/testapp/npm-debug.log
Although I can make it work by doing a global installation, my preference would be to have it running locally.