workshopper / learnyounode

Learn You The Node.js For Much Win! An intro to Node.js via a set of self-guided workshops.
Other
7.25k stars 1.84k forks source link

Simplify scripts in package.json #518

Closed kalinchernev closed 7 years ago

kalinchernev commented 7 years ago

Due to how the path works in npm, it's not necessary to specify the whole path to node_modules.

martinheidegger commented 7 years ago

@kalinchernev Thank you for your effort. However in the NPM4 release notes:

npm scripts no longer prepend the path of the node executable used to run npm before running scripts. A --scripts-prepend-node-path option has been added to configure this behavior.

https://github.com/npm/npm/releases/tag/v4.0.0

Did you test this with NPM 4?

kalinchernev commented 7 years ago

Hi @martinheidegger no, I just tested with the latest stable LTS version. Didn't know v4 introduces this issue. It's just cosmetic this thing, so I'll close it.