You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing via npm is sometimes handy even for programs not written in JavaScript. Go and Rust binaries that are used as part of a JavaScript toolchain are commonly installed this way. (The npm module automatically chooses the right binary to download for the target platform.) I don't know if anyone has ever done this for a Python command, but it looks like Pyinstaller could be used to build appropriate binaries?
Why do it that way? I'm writing a VS Code extension that uses the llm command, and it might be nice to install the llm command automatically, rather than putting it in the install instructions. If an llm npm package existed, I think I might be able to add a dependency on a specific version of llm and have it be automatically installed? (Needs testing.)
More speculatively, perhaps people who already have npm installed would prefer this? The same command can be used to install llm regardless of platform. But for users who are comfortable with setting up Python virtual environments, pip is probably better.
(For my use case, an alternative might port a subset of the llm command to JavaScript. How hard could it be?)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Installing via npm is sometimes handy even for programs not written in JavaScript. Go and Rust binaries that are used as part of a JavaScript toolchain are commonly installed this way. (The npm module automatically chooses the right binary to download for the target platform.) I don't know if anyone has ever done this for a Python command, but it looks like Pyinstaller could be used to build appropriate binaries?
Why do it that way? I'm writing a VS Code extension that uses the llm command, and it might be nice to install the llm command automatically, rather than putting it in the install instructions. If an llm npm package existed, I think I might be able to add a dependency on a specific version of llm and have it be automatically installed? (Needs testing.)
More speculatively, perhaps people who already have npm installed would prefer this? The same command can be used to install llm regardless of platform. But for users who are comfortable with setting up Python virtual environments, pip is probably better.
(For my use case, an alternative might port a subset of the llm command to JavaScript. How hard could it be?)
Beta Was this translation helpful? Give feedback.
All reactions