Skip to content

Failed to run test.js #11

@Suhail

Description

@Suhail

I get this error:

digit@mighty-dev MINGW64 ~/Desktop/workspace/node-sdl2 (master)
$ node test/test.js
C:\Users\digit\Desktop\workspace\node-sdl2\node_modules\ffi\lib\dynamic_library.js:74
    throw new Error('Dynamic Linking Error: ' + err)
    ^

Error: Dynamic Linking Error: Win32 error 126
    at new DynamicLibrary (C:\Users\digit\Desktop\workspace\node-sdl2\node_modules\ffi\lib\dynamic_library.js:74:11)
    at Object.Library (C:\Users\digit\Desktop\workspace\node-sdl2\node_modules\ffi\lib\library.js:45:12)
    at Object.<anonymous> (C:\Users\digit\Desktop\workspace\node-sdl2\dep\SDL_stdinc.js:74:5)
    at Module._compile (internal/modules/cjs/loader.js:799:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10)
    at Module.load (internal/modules/cjs/loader.js:666:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:606:12)
    at Function.Module._load (internal/modules/cjs/loader.js:598:3)
    at Module.require (internal/modules/cjs/loader.js:705:19)
    at require (internal/modules/cjs/helpers.js:14:16)

My steps were:

  • Clone the repo
  • npm install
  • node test/test.js

Tested on Windows 10 x64

--

I am getting these same errors when trying to use this module in my project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions