You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When in local mode, executables are linked into ./node_modules/.bin so that they can be made available to scripts run through npm. (For example, so that a test runner will be in the path when you run npm test.)
In addition to the shell's pre-existing PATH, npm run adds node_modules/.bin to the PATH provided to scripts. Any binaries provided by locally-installed dependencies can be used without the node_modules/.bin prefix. For example, if there is a devDependency on tap in your package, you should write:
"scripts": {"test": "tap test/\*.js"}
instead of "scripts": {"test": "node_modules/.bin/tap test/*.js"} to run your tests.
https://docs.npmjs.com/files/folders#executables
http://www.2ality.com/2016/01/locally-installed-npm-executables.html
https://docs.npmjs.com/cli/run-script
But after I reinstalled all dependencies (application's package.json includes
webcube
, andwebcube
's package.json includesgulp
andplop
) with yarn, thenode_modules/.bin/
is empty.So for this package.json:
npm run lint
,yarn run lint
,npm run new
andyarn run new
fails if gulp and plop aren't installed in global modeThe text was updated successfully, but these errors were encountered: