k6
k6 copied to clipboard
NPM version 0.0.0 as latest
Feature Description
Hey. Any plans to update NPM when you release new version? its 0.0.0 there https://www.npmjs.com/package/k6
k6 currently cannot be installed from npm, it's not one of our supported installation methods, even unofficially.
That seems like an empty package created by the original k6 maintainer, probably to reserve the name, but I have no idea how it can be downloaded 23575 times per week when it doesn't do anything... :confused: We'll have to see if we still have access to that package, to update the description at the very least...
Though, if I recall correctly, npm supported binary non-JS packages :thinking: So we might also see about actually adopting the package and using it as a distribution channel :man_shrugging: Thanks for reminding us that this actually existed, I had completely forgotten about it... :sweat_smile:
The documentation uses the k6 package in the modules bundler setup example: https://k6.io/docs/using-k6/modules/#setting-up-the-bundler.
This is the description for the k6 usage:
A dummy package used to provide type-ahead in VSCode and similar
Hey
As npm supported binary non-JS packages, can we have k6 from npm? it will really help to have dependency tied to the project itself
Hi @MohamadKh75, can you explain your use case in more detail? Is there a reason you couldn't install k6 using the other installation methods we support?
Hey @imiric Thanks for your quick response and your valuable efforts on this fantastic project! I guess it'll help to tie the project dependencies to the project itself. Is it a better way to publish it as an NPM package? (Maybe I'm wrong 🤔 )
@MohamadKh75 Thanks for explaining.
The team has discussed this issue internally, and we've decided to not support NPM as a distribution channel. We understand it would be convenient to have k6 together with all other NPM dependencies in your project, but publishing to NPM would require a maintenance and support effort from our side that we can't currently afford.
We suggest installing k6 using one of the supported installation methods, and pinning the version in a Dockerfile or script, depending on how you manage your environment. Apologies for any inconvenience.