Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alfy-init failed if using volta as a toolchain manager. #173

Open
IsLand-x opened this issue Oct 31, 2023 · 2 comments
Open

alfy-init failed if using volta as a toolchain manager. #173

IsLand-x opened this issue Oct 31, 2023 · 2 comments

Comments

@IsLand-x
Copy link

For detailed information, please refer to: bchatard/alfred-jetbrains#276

@wilsonyiyi
Copy link

On this day in 2024, I also ran into this issue. I suspect the problem is caused by Volta, but I still want to use Volta. My temporary solution is to manually modify the symlink. Here, I’ll use the scenario where npm install --global alfred-npms doesn’t work as an example.

After running npm install --global alfred-npms, a symlink for alfred-npms is created in the Alfred.alfredpreferences/workflows directory. However, the symlink points to an incorrect location, which doesn’t exist. The actual installation location of alfred-npms is /Users/xxx/.volta/tools/image/packages/alfred-npms/lib/node_modules/alfred-npms. So, you just need to manually adjust the symlink to temporarily resolve the issue.
image

Here are the steps to resolve the issue:

  1. Navigate to the Alfred.alfredpreferences/workflows directory and delete the incorrect symlink using:
    rm alfred-npms
  2. Create a new symlink pointing to the correct location:
    ln -s /Users/xxx/.volta/tools/image/packages/alfred-npms/lib/node_modules/alfred-npms alfred-npms
  3. Go back to the Alfred workflows, and you should now see the alfred-npms workflow available.

@LitoMore
Copy link
Collaborator

It looks like Volta uses a temporary path when executing, we could tweak aflred-link for Volta, but not sure if it's worth it as Volta could change in this regard at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants