Jannik Lehmann
Jannik Lehmann

Reputation: 478

Can install but can't run npm packages

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

Answers (2)

Diego Ferri
Diego Ferri

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

Claudio Viola
Claudio Viola

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

Related Questions