Skip to content

Instantly share code, notes, and snippets.

@brunos3d
Created March 5, 2025 08:38
Show Gist options
  • Save brunos3d/f5324cfd8447556dddb9b862c86b11ed to your computer and use it in GitHub Desktop.
Save brunos3d/f5324cfd8447556dddb9b862c86b11ed to your computer and use it in GitHub Desktop.
How to fix vscode commit gui ".husky/pre-commit: line <number>: npx: command not found" error
mkdir -p ~/.config/husky && echo 'export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' > ~/.config/husky/init.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment