-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bin/mocha and bin/_mocha have no exe permission in 6.1.x #3867
Comments
@juergba I think you might need to fix this on your side if you're going to be publishing. I've re-published to work around the issue, but we need to ensure that the file modes are set properly when publishing from windows. This is a Git issue. When you cloned, it's likely the permissions for |
Also, WSL or Git-for-Windows' cygwin thing might help? not sure. |
@Flarna This has been (temporarily) fixed in v6.1.2: |
whoa 1985? wtf |
$ touch 201902081301 bin/mocha
$ touch 201811291355 bin/_mocha bin/options.js |
The "npm" registry needs work... Further, mocha@next is somehow set to "6.0.2" -- "6.1.3" perhaps? |
If using Windows, use this to prevent file permission changes to UN*X scripts: C:> git config --local core.fileMode false |
Thanks! |
@juergba, note the npm issues! |
Related: IMO this is an npm issue that's never been fixed. |
see also isaacs/node-tar#210 which may be where the fix needs to live |
Prerequisites
faq
labelnode node_modules/.bin/mocha --version
(Local) andmocha --version
(Global). We recommend that you not install Mocha globally.Description
It seems the the files
bin/mocha
andbin/_mocha
have no exe permissions in 6.1.0 and 6.1.1. If I do annpm install --no-bin-links
and try./node_modules/mocha/bin/_mocha
(ormocha
) I getPermission denied
in linux.At least in 6.0.2 these files had
rwx
permissions.Steps to Reproduce
Linux environment needed
npm install --no-bin-links
./node_modules/mocha/bin/_mocha
or./node_modules/mocha/bin/mocha
Expected behavior: [What you expect to happen]
file is executable and actually
node ./node_modules/mocha/bin/_mocha
get's executed.Actual behavior: [What actually happens]
File is not executable and therefore
Permission denied
happens.Reproduces how often: [What percentage of the time does it reproduce?] 100%
Versions
mocha --version
andnode node_modules/.bin/mocha --version
: 6.1.1node --version
: 10.15.3Additional Information
The text was updated successfully, but these errors were encountered: