Nes.css: Commit issue with husky

Created on 8 Mar 2019  路  8Comments  路  Source: nostalgic-css/NES.css

I have forked NES.css and tried to commit and go the error below. This seems to be a husky issue but the issue is still open. https://github.com/typicode/husky/issues/390

Can't find node in PATH, trying to find a node binary on your system
husky > pre-commit (node v10.15.0)

To Reproduce

  1. Try to commit with node v10

Expected behavior
Commit as usual.

Screenshots

Environment:
Mac OSX 10.12.6
Node 10.15

bug couldn't reproduce

Most helpful comment

Hi guys

I have created a repo with the suggested updates to the pixel borders. Its somewhat of a remix of what you have done in NES.css. Please have a look as I hope there are some ideas you guys can use and if I get time I may release as a standalone mixin if thats ok with you.

https://github.com/NigelOToole/pixel-borders
https://nigelotoole.github.io/pixel-borders/

All 8 comments

I wasn't able to replicate this bug.
I can commit successfully using Ubuntu 16.04 and 18.04 using node v10.15.2, see screenshot below:

image

Maybe this is a Mac OSX situation?


Could you also share your commit message?

I could not reproduce it too. 馃

My env

  • macOX High Sierra
  • npm: v6.4.1
  • node: v10.15.1

Could you check if the PATH of node passes by executing the following command? 馃攳

echo $PATH

If the problem does not reproduce could you try reinstalling node_modules?

rm -rf node_modules
npm i --no-save

The output from echo $PATH is below and reinstalling node_modules didnt help unfortunately. Could it have anything to do with this issue? https://github.com/typicode/husky/issues/390

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands

Are you trying to commit using the GUI? (Sourcetree, tower, and so on)
If so, I think this issue is the same problem. 馃

Could you open GUI Application from terminal?
Then you can read .bashrc or .bash_profile, so I think you can solve the node path.

$ open /Applications/yourappname.app

Im using sourcetree and in the .bash_profile I have the below.

[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" # This loads nvm bash_completion

Thanks for the information. 馃檱
This issue is not a problem of NES.css. so I close it.
If you need help, could you write to husky's issue? 馃檹

I understand, thanks for trying. I may create my own repo with the my suggestions at some stage.

Hi guys

I have created a repo with the suggested updates to the pixel borders. Its somewhat of a remix of what you have done in NES.css. Please have a look as I hope there are some ideas you guys can use and if I get time I may release as a standalone mixin if thats ok with you.

https://github.com/NigelOToole/pixel-borders
https://nigelotoole.github.io/pixel-borders/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

YuK1Game picture YuK1Game  路  6Comments

Ding-Fan picture Ding-Fan  路  5Comments

BcRikko picture BcRikko  路  6Comments

panoramix360 picture panoramix360  路  6Comments

evexoio picture evexoio  路  5Comments