Closed Joseph7451797 closed 7 years ago
Browserify is not a dependency. It's a peer dependency. Browserify calls browserify-shim, not the other way around. Why don't you have it installed?
@bendrucker, I appreciate your reply.
In my case, I use videojs-contrib-hls@3.6.10 as a dependency, and videojs-contrib-hls@3.6.10 uses mux.js, and mux.js uses browserify-shim@3.8.12. Actually I didn't add browserify and browserify-shim to my project package.json because I dont't need them.
It seems that mux.js should add 'browserify' to its 'dependencies'.(Well, I am not pretty sure...)
I am not familiar with browserify and browserify-shim, this time I'll manually add 'browserify' to my project package.json to solve this problem.
Sounds like mux.js expects to be built with browserify. Either way you can add browserify to your dependencies.
I have read this #196, and still have a question.
I use npm@3 and encountered an error while using
npm shrinkwrap --dev
. Here is my output ofnpm ls
:I know in npm@3, npm doesn't install peerdependencies, but npm shrinkwrap do read peerdependencies setting and return error. Here is my question: is it possible to add 'browserify' to 'dependencies'?