Reputation: 478
I'm having trouble with my node.js/npm setup,
I freshly installed it via the website and it worked fine.
It told me to make sure /usr/local/bin/npm has to be in my path and when I run
echo $PATH
it is in there, so it should be fine.
I can now install packages (tested with npm i webpack -save-dev
) the installation works as expected, without any errors.
But when i run webpack
all It is giving back is command not found
has anyone experienced
something like this before?
Upvotes: 1
Views: 3386
Reputation: 2787
Did you install node v8/npm v5
?
In that case, it seems there's an open big-bug
ticket on the npm repository.
Upvotes: 0
Reputation: 319
I believe what you are looking for is a global package install. Try using
npm i -g webpack
You can get help on install with
npm help i
Upvotes: 2