Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot use npm install #359

Closed
BenDol opened this issue Nov 20, 2021 · 3 comments
Closed

[BUG] Cannot use npm install #359

BenDol opened this issue Nov 20, 2021 · 3 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@BenDol
Copy link

BenDol commented Nov 20, 2021

Describe the bug
When I run npm install it fails with an error (see attached for more details)

To Reproduce
No Idea if this is a unique issue or it it's repeatable. Just fresh install the server npm?

See error

3760 error code 1
3761 error path C:\Projects\runejs\server\node_modules\canvas
3762 error command failed
3763 error command C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
3764 error Warning: Missing input files:
3764 error C:\GTK\bin\libpng14-14.dll
3764 error C:\GTK\bin\libintl-8.dll
3764 error C:\GTK\bin\libpangoft2-1.0-0.dll
3764 error C:\GTK\bin\libcairo-2.dll
3764 error C:\GTK\bin\libpangowin32-1.0-0.dll
3764 error C:\GTK\bin\libfontconfig-1.dll
3764 error C:\GTK\bin\libgmodule-2.0-0.dll
3764 error C:\GTK\bin\libexpat-1.dll
3764 error C:\GTK\bin\libpangocairo-1.0-0.dll
3764 error C:\GTK\bin\zlib1.dll
3764 error C:\GTK\bin\libgobject-2.0-0.dll
3764 error C:\GTK\bin\libpango-1.0-0.dll
3764 error C:\GTK\bin\libfreetype-6.dll
3764 error C:\GTK\bin\libglib-2.0-0.dll
3764 error C:\GTK\bin\libgthread-2.0-0.dll
3764 error Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
3764 error   Backend.cc
3764 error c:\projects\runejs\server\node_modules\canvas\src\backend\backend.h(3): fatal error C1083: Cannot open include file: 'cairo.h': No such file or directory [C:\Projects\runejs\server\node_modules\canvas\build\canvas.vcxproj]

2021-11-20T07_27_25_813Z-debug.zip

@BenDol BenDol added the bug Something isn't working label Nov 20, 2021
@SchauweM
Copy link
Collaborator

SchauweM commented Nov 20, 2021

Hey, this is not an issue on our end but most likely something to do with your npm version, cache or a the package itself on your node version (support issue).

  • run: npm cache clean --force
  • delete node_modules
  • run: npm install

Also try to update your node version or install the additional tools for nodejs from the Windows Start menu (in node.js folder) if those are missing or we're installed manually.

Sorry for any inconvinience you're having with npm but it's wlnot within our control :/ We'll be adding a min required node version in our readme from now on!

PS: feel free to reply, if issues persist I might re-open the issue and invesigate further if needed.

@SchauweM SchauweM added the wontfix This will not be worked on label Nov 20, 2021
@BenDol
Copy link
Author

BenDol commented Nov 20, 2021

I had to follow this https://github.com/Automattic/node-canvas/wiki/Installation:-Windows
Then change the npm msvs version npm config set msvs_version 2019

@BenDol
Copy link
Author

BenDol commented Nov 21, 2021

Perhaps the installation guide could be updated to accommodate this requirement?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants