Run node package from commandline

Viewed 5875

I see a lot of examples on the internet, that say:
1. install a node package using: npm install package for example npm install node-sass
2. to run the package from the commandline just call the package + arguments like so:
node-sass --output-style compressed -o dist/css src/scss

I'm new to node.js and I'm probably doing something wrong or I just don't understand it yet, but I have to do the following to use the package from the commandline:
node node_modules/node-sass --output-style compressed -o dist/css src/scss

What am I doing wrong?

1 Answers
Related