I am trying to execute a locally saved npm package, but it is not found.
npm run jsdoc
Outputs:
npm ERR! Linux 4.15.0-24-generic
npm ERR! argv "/usr/bin/node" "/usr/local/bin/npm" "run" "jsdoc"
npm ERR! node v8.10.0
npm ERR! npm v3.10.10
npm ERR! missing script: jsdoc
...
But I know the script is located in my node_modules/.bin
, and can execute it directly:
jsdoc -> ../jsdoc/jsdoc.js*
And running it works as a pre-configured command on my package.json
"scripts": {
"doc": "jsdoc"
},
Is there a special environment configuration (npmrc or something similar) to make npm run look at both package.json
scripts and in node_modules/.bin
?
What am I missing?