better-rail / app

An alternative mobile client for Israel Railways
https://better-rail.co.il
GNU Affero General Public License v3.0
146 stars 27 forks source link

Error in `postinstall` Script Execution #373

Closed YonLiud closed 2 months ago

YonLiud commented 3 months ago

πŸ› Bug Description:

When running yarn install after cloning the repository, I encountered an error related to the postInstall script defined in package.json.

πŸ” Steps to Reproduce:

Steps to reproduce the behavior:

  1. Clone repository
  2. Run command
     yarn install
  3. See error

Expected Behavior:

The postInstall script should execute without errors after running yarn install, performing any necessary post-installation tasks.

Actual Behavior:

The command fails with the error message: No such package ; File not found: C:/Users/user/Documents/better-rail-app/node_modules/;/package.json.

πŸ“· Screenshots/Logs:

>yarn install
yarn install v1.22.22
[1/4] Resolving packages...
success Already up-to-date.
$ patch-package; node ./bin/postInstall;
patch-package 6.2.2
No such package ;

  File not found: C:/Users/user/Documents/better-rail-app/node_modules/;/package.json
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

πŸ’» Environment:

Specify the relevant environment details where the bug occurred:

OS: Windows 11 23H2 Yarn version: v1.22.22