Npm error 'tinycolor2'

It’s been 2 days since 2 of my bots don’t work because of an npm called “tinycolor2”, but when I check all my bot files, nothing comes up. Already tried to install and uninstall this npm, but always denied access! How can I fix this?

module.js:550

5:09 PM

throw err;

5:09 PM

^

5:09 PM

5:09 PM

Error: Cannot find module ‘tinycolor2’

5:09 PM

at Function.Module._resolveFilename (module.js:548:15)

5:09 PM

at Function.Module._load (module.js:475:25)

5:09 PM

at Module.require (module.js:597:17)

5:09 PM

at require (internal/module.js:11:18)

5:09 PM

at Object. (/rbd/pnpm-volume/e01ee832-17bf-470c-8495-bbbee695bc0c/node_modules/.registry.npmjs.org/@jimp/core/0.6.4/node_modules/@jimp/core/dist/index.js:78:41)

5:09 PM

at Module._compile (module.js:653:30)

5:09 PM

at Object.Module._extensions…js (module.js:664:10)

5:09 PM

at Module.load (module.js:566:32)

5:09 PM

at tryModuleLoad (module.js:506:12)

5:09 PM

at Function.Module._load (module.js:498:3)

Hi @YatoBot – it sounds like you were trying to install/uninstall via the command line. Is “tinycolor2” in your dependencies? If so, have you removed it there? If not, do you know what package is requiring it?

If you were using the console to try install this npm module, then make sure you use pnpm and not npm

1 Like

I removed it from my package, but still kept asking for npm.

Could you send me an invite to your project so I can get a closer look at what you are trying to do, and see if I can hopefully help you solve the issue!