send icon indicating copy to clipboard operation
send copied to clipboard

[fix] npm i @koa/send

Open vanodevium opened this issue 2 years ago • 9 comments

When I enter:

npm i @koa/send

I see:

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@koa%2fsend - Not found
npm ERR! 404 
npm ERR! 404  '@koa/send@*' is not in this registry.
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Checklist

  • [x] I have searched through GitHub issues for similar issues.
  • [x] I have completely read through the README and documentation.

vanodevium avatar Aug 24 '23 14:08 vanodevium

The package is published on npm as koa-send. When @3imed-jaberi commited the typescript re-write, the package name was switched from koa-send to @koa/send but the publish never happened. (this commit https://github.com/koajs/send/commit/61f8be38e662cc7ffbf550c13f49fbfe495e5826)

Unclear why the package was renamed, but for now you'll need to npm i koa-send instead, or install from github commit.

mreinstein avatar Aug 24 '23 15:08 mreinstein

Thanx!

vanodevium avatar Aug 24 '23 16:08 vanodevium

either the readme should be changed to document koa-send or the package should be published under the currently documented package name @koa/send, currently this is very confusing

masterflitzer avatar Aug 29 '23 21:08 masterflitzer

I agree, and the solution I'd like to see is the npm module getting published but koajs and express are both mausoleums and effectively dead/dying so I'm not super hopeful these will happen any time soon.

mreinstein avatar Aug 29 '23 21:08 mreinstein

Still waiting on https://github.com/koajs/koa-range to get published too.

mreinstein avatar Aug 29 '23 21:08 mreinstein

I agree, and the solution I'd like to see is the npm module getting published but koajs and express are both mausoleums and effectively dead/dying so I'm not super hopeful these will happen any time soon.

dying? what is used as alternative then? i just migrated 2 small projects to koa cause i thought it might be leaner than express

masterflitzer avatar Aug 30 '23 13:08 masterflitzer

Please investiage ranked list

I still use koajs, nest.js uses koajs. It's important.

But, as alternative, you can use fastify at any time.

vanodevium avatar Aug 30 '23 13:08 vanodevium

thx for the tip

masterflitzer avatar Aug 30 '23 15:08 masterflitzer

i just migrated 2 small projects to koa cause i thought it might be leaner than express

it's definitely leaner than express, and both projects are still quite usable for now.

mreinstein avatar Aug 30 '23 15:08 mreinstein