pranshuchittora / autarky

Liberating disk space from 📁 node_modules | Built with React
https://autarky.js.org/
MIT License
359 stars 8 forks source link

ENOENT error #2

Closed totsteps closed 4 years ago

totsteps commented 4 years ago

Thanks for you work.

I was trying to install but it always errors with the following error:

▶ [~] yarn global add autarky
yarn global v1.19.1
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
error An unexpected error occurred: "ENOENT: no such file or directory, symlink '../../dist/index.js' -> '/Users/gagan/Library/Caches/Yarn/v6/npm-autarky-1.0.6-20b9c68f7d72d4698ee6ae18d25b1f33e62f96be-integrity/node_modules/autarky/.bin/@pranshuchittora/autarky'".
info If you think this is a bug, please open a bug report with the information provided in "/Users/gagan/.config/yarn/global/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
pranshuchittora commented 4 years ago

Hey @gagan0723 thank you very much. Pardon for the inconvenience.

I tried installing it using yarn & it installed successfully

yarn global add autarky
yarn global v1.19.1
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

success Installed "autarky@1.0.7" with binaries:
      - autarky
Done in 3.08s.

Yarn version

1.19.1

Solution

  1. Try clearing the cache -> yarn cache clean
  2. Refer this -> https://github.com/yarnpkg/yarn/issues/5353#issuecomment-399381322
  3. If 1&2 doesn't works then try using good old npm -> npm i -g autarky

    Looking forward to hearing back from you :smile: :+1:

totsteps commented 4 years ago

Thanks for the response.

yarn cache clean

Worked for me.