Mattf's Dirty Workaround

From H4KS
Jump to navigationJump to search

Mattf's Dirty Workaround[edit]

This workaround is for users facing issues with npm versioning due to .git checks. Follow these steps to create a fake .git folder and push updates effectively.

Steps[edit]

  1. Create a fake empty .git folder:
  ```bash
  mkdir n8n-*/.git
  ```
  1. Execute npm version patch:
  ```bash
  npm version patch
  ```
  1. Push your changes with tags:
  ```bash
  git push --follow-tags
  ```

Description[edit]

By creating an empty .git directory in your project folder, you can bypass the .git checking that may cause npm version updates to fail. This dirty workaround allows you to continue your development without getting blocked by versioning issues.