-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSHint not listed in npm dependencies breaks npm install
#44
Comments
Npm should install jshint because it's a peer-dependency of gulp-jshint: https://github.com/spalger/gulp-jshint/blob/master/package.json I'm using NPM version 2.14.7, maybe you have an outdated version of NPM that doesn't support peerDeps? I need to look into this a bit more. Ideally we don't need to add it to our dependencies since we aren't using it directly, but instead using it through gulp-jshint. |
Here's my npm version:
This might be related to the API changes in npm 3 and this in particular. It'd make sense for gulp-jshint to download the dependency however. Bug on their end? |
Alright so I upgraded my version of NPM to the latest 3.3.12 and I ran into the same issue. Looks like NPM no longer auto installs peer depedencies: https://github.com/npm/npm/blob/master/CHANGELOG.md#peerdependencies I just update Mongotron to the latest Node version, 5.3.0, and added a couple new dependencies for things that were peer dependencies before: Everything is up and working again on my system, let me know if you have any other issues running. |
Thanks for the fix - no issues on my end either now! |
Installing dependencies with
npm install
fails on freshly cloned repo due to JSHint not being required locally. Adding JSHint to be installed locally"jshint": "2.9.1-rc1"
in package.json ornpm --save-dev jshint
lets setup complete successfully.Packing & running the app further on Arch Linux worked without a hitch once this was taken care of.
The text was updated successfully, but these errors were encountered: