-
Notifications
You must be signed in to change notification settings - Fork 179
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
[Tooling] Installing genkit-cli using pnpm run setup
can fail because of permissions problems
#1850
Comments
…al version of genkit cli #1850 RATIONALE: On some systems, the `npm link` step in `pnpm run setup` fails to execute owing to a lack of permissions and elevated privileges are not available. Therefore, this wrapper script is a convenience feature to allow using the repo-local version of the genkit cli without having to symlink it into system directories. ISSUE: #1850 CHANGELOG: - [ ] Add a convenience wrapper script that does not require `npm link`ing the genkit CLI thereby avoiding permission problems faced on certain operating systems.
I'd look into using nvm, or something similar to manage a node installation that is outside of |
Unfortunately, even after setting up nvm, for some reason the |
ISSUE: #1850 CHANGELOG: - [ ] Automatically add license header to a yaml file. - [ ] Update the setup script to include nvm and update the version of go on some machines with older operating systems to unblock them. - [ ] Add a `py/bin/genkit` wrapper script that allows running the repo-local version of genkit for situations when `npm link` doesn't work (even with nvm it doesn't on any of my machines).
What do you get when you do Should get something clean like this:
|
ISSUE: #1850 CHANGELOG: - [ ] Automatically add license header to a yaml file. - [ ] Update the setup script to include nvm and update the version of go on some machines with older operating systems to unblock them.
@MichaelDoyle I had to remove a previous global installation of genkit, remove pnpm, add nvm, install pnpm and then run the instructions from the docs for it to work. Closing this bug. Thank you! |
Describe the bug
When running
pnpm run setup
, thenpm link
stage can fail to create symlinks if npm isn't run as root. It's likely not a good idea to run npm as root.To Reproduce
pnpm install
andpnpm run setup
on Fedora Linux 41.Expected behavior
The repository version of genkit CLI should be usable without having to modify system files.
Screenshots
N/A
Desktop (please complete the following information):
Additional context
npm link
stage is not required.The text was updated successfully, but these errors were encountered: