LeaPhant / skyblock-stats

A beautiful SkyBlock profile viewer 🌹
https://sky.lea.moe
MIT License
168 stars 33 forks source link

Errors while running npm i #54

Closed LostExcalibur closed 4 years ago

LostExcalibur commented 4 years ago

Hi, i am trying to use this code for a project of mine, i just installed node.js and MongoDB without any errors. I succesfully cloned the repository, but when i run npm i, i get a lot of errors saying im missing some some files :

node-pre-gyp WARN Using needle for node-pre-gyp https download node-pre-gyp WARN Pre-built binaries not installable for canvas@2.6.0 and node@12.18.0 (node-v72 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error Remote end closed socket abruptly. node-pre-gyp WARN Pre-built binaries not installable for canvas@2.6.0 and node@12.18.0 (node-v72 ABI, unknown) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error ENOENT: Cannot cd into 'C:\Users\romai\Gitrepos\skyblock-stats\node_modules\canvas\build\Release' Warning: Missing input files: C:\GTK\bin\libcairo-2.dll C:\GTK\bin\zlib1.dll C:\GTK\bin\libpangoft2-1.0-0.dll C:\GTK\bin\libfontconfig-1.dll C:\GTK\bin\libfreetype-6.dll C:\GTK\bin\libgobject-2.0-0.dll C:\GTK\bin\libgthread-2.0-0.dll C:\GTK\bin\libglib-2.0-0.dll C:\GTK\bin\libpango-1.0-0.dll C:\GTK\bin\libgmodule-2.0-0.dll C:\GTK\bin\libpng14-14.dll C:\GTK\bin\libexpat-1.dll C:\GTK\bin\libpangocairo-1.0-0.dll C:\GTK\bin\libpangowin32-1.0-0.dll C:\GTK\bin\libintl-8.dll

and then the errors keep going. Do you have some tips to solve this ? Thank you anyway for your time and this amazing website.

LostExcalibur commented 4 years ago

After googling around a bit, i found the solution : updating npm (by running npm update) seemed to fix the problem.