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
{{ message }}
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
When attempting to run a script which contains npm explore to a path to a module, npm throws an error about not finding /bin/zsh or /bin/bash. In trying to narrow down the regression range, this seems to work correctly in v3.8.9 and fails at v3.9.0+.
Test case log
$ npm test>[email protected]test /Users/eli/code/npm-fail
> npm explore $(echo "$(cd "$(dirname "sub")"&& pwd)/$(basename "sub")") -- 'npm install && npm test'
zsh:1: command not found: npm install && npm test
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node""/usr/local/bin/npm""explore""/Users/eli/code/npm-fail/sub""--""npm install && npm test"
npm ERR! node v6.2.1
npm ERR! npm v3.9.0
npm ERR! file /bin/zsh
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! enoent spawn ENOENT
npm ERR! enoent spawn ENOENT
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! enoent Check if the file '/bin/zsh' is present.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/eli/code/npm-fail/npm-debug.log
npm ERR! Test failed. See above for more details.
I'm opening this issue because:
What's going wrong?
When attempting to run a script which contains
npm exploreto a path to a module, npm throws an error about not finding/bin/zshor/bin/bash. In trying to narrow down the regression range, this seems to work correctly in v3.8.9 and fails at v3.9.0+.Test case log
I've created a reduced test case at https://github.com/eliperelman/npm-fail
supporting information:
npm -vprints:3.9.0node -vprints:v6.2.1npm config get registryprints:https://registry.npmjs.org/OS X