xixi52 / discord-canvas

A package to simplifie the usage of canvas for Discord !
87 stars 45 forks source link

can't require the package #61

Open newtox opened 1 year ago

newtox commented 1 year ago

When I try to install the package via npm i --save-dev @types/discord-canvas I get this error: npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types%2fdiscord-canvas - Not found npm ERR! 404 npm ERR! 404 '@types/discord-canvas@*' 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.

Using Typescript.

emidblol commented 1 year ago

Try installing discord-canvas The error that you are getting is basically, the package doesn't exist

newtox commented 1 year ago

I did that, could it be possible that I can't import it in typescript?

emidblol commented 1 year ago

I am not a typescript developer Also why did you add a @ at the end?

pioupia commented 1 year ago

I did that, could it be possible that I can't import it in typescript?

Hi! The command you run is only used to install types made available by certain modules that do not wish to integrate them directly into the module. The discord-canvas package does not have types, so it is not possible to install them.