Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

Browserify Failed!: Cannot find module 'blender-media' #18

Closed
liucf opened this issue Nov 2, 2015 · 6 comments
Closed

Browserify Failed!: Cannot find module 'blender-media' #18

liucf opened this issue Nov 2, 2015 · 6 comments

Comments

@liucf
Copy link

liucf commented Nov 2, 2015

when i run gulp --back, have Browserify Failed!: Cannot find module 'blender-media' this error.

dig into the code, i found the issue is in resource/assets/js/back/app.js, last line code is
require('./media')

if i comment out this line, they run gulp --back, it works without the error.
so looks like missed some file? how can i fix it?

thanks

@sebastiandedeyne
Copy link
Member

It could be that you're missing a package which should be installed via our private npm repository. You can set it up via these commands:

npm set registry https://npm.spatie.be
npm set ca null

Our registry is set up with Sinopia: https://github.com/rlidwka/sinopia

Don't forget to remove the registry line from your ~/.npmrc if you're planning to publish to npm at some point!

If it's a different issue, feel free to post the error up here and I'll check it out.

@liucf
Copy link
Author

liucf commented Nov 3, 2015

still not working...
and i do see i already have a folder named "blender-media" under node_modules folder.
so i should have that package already?

thanks

@sebastiandedeyne
Copy link
Member

Completely deleting node_modules after setting up the registry might be necessary.

And what branch of this project are you trying to install?

@liucf
Copy link
Author

liucf commented Nov 4, 2015

@sebastiandedeyne
hmm, sitll not working. is there any install guide for this project?

thanks

@sebastiandedeyne
Copy link
Member

Sorry, currently no install guide for this project, can't promise it anytime soon either.

Maybe it's not working with your NPM version, the project currently requires v3+.

If you need any more help, please paste the entire error here, and let me know the branch, or even better the commit hash, of Blender.

@willemvb
Copy link
Contributor

willemvb commented Nov 4, 2015

We've added an install section to the readme.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants