-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
So i just installed canvas and whenever i want to run the file it gives me the following error:
module.js:681
return process.dlopen(module, path._makeLong(filename));
^
Error: The specified module could not be found.
\\?\C:\Samp\node_modules\canvas\build\Release\canvas.node
at Object.Module._extensions..node (module.js:681:18)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\Samp\node_modules\canvas\lib\bindings.js:3:18)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\Samp\node_modules\canvas\lib\canvas.js:13:14)
at Module._compile (module.js:652:30)
When i try to install canvas again:
> canvas@1.6.11 install C:\Samp\node_modules\canvas
> node-gyp rebuild
C:\Samp\node_modules\canvas>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Warning: Missing input files:
C:\GTK\bin\libfreetype-6.dll
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Canvas.cc
CanvasGradient.cc
..\src\Canvas.cc(154): warning C4457: declaration of 'data' hides function parameter [C:\Samp\node_modules\canvas\build\canvas.vc
xproj]
..\src\Canvas.cc(150): note: see declaration of 'data'
..\src\Canvas.cc(221): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Samp\node_modules\canvas\build\canvas.vc
xproj]
C:\Samp\node_modules\canvas\node_modules\nan\nan.h(1618): note: see declaration of 'Nan::Callback::Call'
..\src\Canvas.cc(226): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Samp\node_modules\canvas\build\canvas.vc
xproj]
C:\Samp\node_modules\canvas\node_modules\nan\nan.h(1618): note: see declaration of 'Nan::Callback::Call'
..\src\Canvas.cc(377): warning C4996: 'Nan::MakeCallback': was declared deprecated [C:\Samp\node_modules\canvas\build\canvas.vcxp
roj]
C:\Samp\node_modules\canvas\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\Canvas.cc(446): warning C4996: 'Nan::MakeCallback': was declared deprecated [C:\Samp\node_modules\canvas\build\canvas.vcxp
roj]
C:\Samp\node_modules\canvas\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\Canvas.cc(452): warning C4996: 'Nan::MakeCallback': was declared deprecated [C:\Samp\node_modules\canvas\build\canvas.vcxp
roj]
C:\Samp\node_modules\canvas\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\Canvas.cc(476): warning C4996: 'Nan::MakeCallback': was declared deprecated [C:\Samp\node_modules\canvas\build\canvas.vcxp
roj]
C:\Samp\node_modules\canvas\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
CanvasPattern.cc
CanvasRenderingContext2d.cc
..\src\CanvasRenderingContext2d.cc(916): warning C4458: declaration of 'constructor' hides class member [C:\Samp\node_modules\can
vas\build\canvas.vcxproj]
c:\samp\node_modules\canvas\src\CanvasRenderingContext2d.h(72): note: see declaration of 'Context2d::constructor' (compiling so
urce file ..\src\CanvasRenderingContext2d.cc)
color.cc
Image.cc
ImageData.cc
init.cc
..\src\Image.cc(380): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Samp\node_modules\canvas\build\canvas.vcx
proj]
C:\Samp\node_modules\canvas\node_modules\nan\nan.h(1618): note: see declaration of 'Nan::Callback::Call'
..\src\Image.cc(393): warning C4996: 'Nan::Callback::Call': was declared deprecated [C:\Samp\node_modules\canvas\build\canvas.vcx
proj]
C:\Samp\node_modules\canvas\node_modules\nan\nan.h(1618): note: see declaration of 'Nan::Callback::Call'
win_delay_load_hook.cc
Creating library C:\Samp\node_modules\canvas\build\Release\canvas.lib and object C:\Samp\node_modules\canvas\build\Release\c
anvas.exp
Generating code
Finished generating code
canvas.vcxproj -> C:\Samp\node_modules\canvas\build\Release\\canvas.node
canvas.vcxproj -> C:\Samp\node_modules\canvas\build\Release\canvas.pdb (Full PDB)
Copying C:/GTK/bin/libcairo-2.dll to C:\Samp\node_modules\canvas\build\Release\\libcairo-2.dll
1 file(s) copied.
Copying C:/GTK/bin/libfontconfig-1.dll to C:\Samp\node_modules\canvas\build\Release\\libfontconfig-1.dll
1 file(s) copied.
Copying C:/GTK/bin/libexpat-1.dll to C:\Samp\node_modules\canvas\build\Release\\libexpat-1.dll
1 file(s) copied.
Copying C:/GTK/bin/libfreetype-6.dll to C:\Samp\node_modules\canvas\build\Release\\libfreetype-6.dll
The system cannot find the file specified.
Copying C:/GTK/bin/libpng14-14.dll to C:\Samp\node_modules\canvas\build\Release\\libpng14-14.dll
1 file(s) copied.
Copying C:/GTK/bin/zlib1.dll to C:\Samp\node_modules\canvas\build\Release\\zlib1.dll
1 file(s) copied.
win_delay_load_hook.cc
Generating code
Finished generating code
canvas-postbuild.vcxproj -> C:\Samp\node_modules\canvas\build\Release\\canvas-postbuild.node
canvas-postbuild.vcxproj -> C:\Samp\node_modules\canvas\build\Release\canvas-postbuild.pdb (Full PDB)
npm WARN discord.js@11.3.2 requires a peer of bufferutil@^3.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.3.2 requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.3.2 requires a peer of node-opus@^0.2.7 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.3.2 requires a peer of opusscript@^0.0.6 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.3.2 requires a peer of sodium@^2.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN discord.js@11.3.2 requires a peer of libsodium-wrappers@^0.7.3 but none is installed. You must install peer dependencies
yourself.
npm WARN discord.js@11.3.2 requires a peer of uws@^9.14.0 but none is installed. You must install peer dependencies yourself.
npm WARN samp@1.0.0 No description
npm WARN samp@1.0.0 No repository field.
+ canvas@1.6.11
updated 1 package in 57.347s
also freetype6.dll is in gtk directory
Code
use strict';
const SpoilerBot = require('discord-spoiler-bot');
let config = {
token: 'you_secret_token_here',
};
let bot = new SpoilerBot(config);
bot.connect();
Your Environment
- Version of node-canvas (e.g. 1.4.0):1.6.11
- Environment (e.g. node 4.2.0 on Mac OS X 10.8):latest version windows node js