Skip to content
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

Fix the 'Error: Cannot find module browserify' #246

Closed
wants to merge 1 commit into from
Closed

Fix the 'Error: Cannot find module browserify' #246

wants to merge 1 commit into from

Conversation

jancarloviray
Copy link

'Browserify' needs to be installed in order to run the example app.

'Browserify' needs to be installed in order to run the example app.
@lo1tuma
Copy link
Member

lo1tuma commented Dec 28, 2013

I can’t reproduce this error. browserify is a dependency of grunt-browserify and should be in the node_modules.

@jancarloviray
Copy link
Author

hmmm.. npm install does not install browserify on mine. I've replicated this many times and it doesn't install it unless I explicitly state it in devDependencies

@jlogsdon
Copy link
Contributor

Dependencies of modules are only included for that module. If you need
browserify outside of that module you must depend on it.

Mathias, make sure you don't have it installed globally, that may mask the
issue.
On Dec 27, 2013 9:44 PM, "Jan Carlo Viray" notifications@github.com wrote:

hmmm.. npm install does not install browserify on mine. I've replicated
this many times and it doesn't install browserify


Reply to this email directly or view it on GitHubhttps://github.com//pull/246#issuecomment-31288728
.

@jancarloviray
Copy link
Author

@jlogsdon that's probably what may be masking the issue.

@lo1tuma
Copy link
Member

lo1tuma commented Dec 28, 2013

@jlogsdon it’s a peerDependency of grunt-browserify so it should be available outside of that module.

I don’t have browserify installed globally. As you can see here browserify is in the node_modules folder.

@jancarloviray which version of npm do you have? Maybe you use an old version which doesn’t supports peerDependencies?
Have you tried deleting the whole node_modules folder before running npm i?

@c089
Copy link
Member

c089 commented Dec 30, 2013

Works for me too, using npm in version 1.3.21.

@jancarloviray
Copy link
Author

@lo1tuma you're right. I do have an older version of npm that doesn't support peerDependencies.

@spikebrehm
Copy link
Member

Closing. Thanks all!

@spikebrehm spikebrehm closed this Jan 10, 2014
@jancarloviray jancarloviray deleted the patch-1 branch January 10, 2014 22:48
This was referenced Feb 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants