Hi,
I recently upgraded to node version 4.0.0. and I am unable to run webpack.
I did a nom install -g webpack and installed it locally on my project. however when I run webpack command, it says command not found.
3 thoughts on “Webpack issues on node 4.0.0”
Comments are closed.
@joshikeerti Any luck with this? Please note that you can hit
node_modules/.bin/webpack
to trigger webpack installed locally to a project.I have a similar problem.
If I run
webpack
in my terminal, return errorzsh: command not found: webpack
but if I run
node_modules/.bin/webpack
it’s work and build my app.How can I fix that? Why
webpack
are not found?Helpful npm package for this issue. Solved it for me using zsh.
https://www.npmjs.com/package/add-local-binaries-to-path