Answer the question
In order to leave comments, you need to log in
Why can't node js see installed npm packages?
Hello, I'm not sure that I correctly formulated the question, there was such a problem. I'm trying to install an npm package, let's say postcss, the installation is successful, everything is fine, but as soon as I try to run this package, the console gives a bash error: <package name>: command not found. And so with all packages. It doesn't matter if I install the package globally or locally. Please tell me what could be the problem?
Answer the question
In order to leave comments, you need to log in
Option 1:
PATH="$PWD/node_modules/.bin:$PATH" postcss --params
{
"scripts": {
"postcss": "postcss --params"
}
}
npm run postcss
npx postcss --params
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question