1

I'm trying to use 'scrypt' module. The problem is that when I try to run my nodejs application (node app.js), I get this error:

C:\Users\A\Documents\B\C>node app.js

module.js:356
  Module._extensions[extension](this, filename);
                               ^
Error: The specified module could not be found.
C:\Users\A\Documents\B\C\node_modules\scrypt\build\Release\scry
pt.node
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (C:\Users\A\Documents\B\C\node_module
s\scrypt\index.js:1:76)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

I installed 'scrypt' module with this line:

npm install scrypt -msvs_version=2012

the -msvs_version is taken from this answer

Community
  • 1
  • 1
  • Sounds like it didn't compile (correctly). Did you try installing under the Windows SDK command prompt? – mscdex Apr 27 '14 at 10:53
  • @mscdex What did u mean 'installing under the Windows SDK'? Install what? Can you please elaborate. – user3578076 Apr 27 '14 at 11:01
  • If you're using Visual Studio Express (2012), you should have installed the Windows SDK. When you install the SDK, it comes with its own command prompt (in your start menu) that pre-sets some environment variables for compiling. node-gyp/npm needs to be ran under this command prompt for compilation to work correctly. – mscdex Apr 27 '14 at 11:03
  • Also, what node version (`node -v`) do you have? – mscdex Apr 27 '14 at 11:04
  • node version: v0.10.26 – user3578076 Apr 27 '14 at 11:10
  • I tried running 'npm install' from the Windows SDK Command Prompt, and running 'node app.js', but I still get the same error – user3578076 Apr 27 '14 at 11:14

1 Answers1

0

You should have a look at this node-scrypt issue.

According to what is said there, you should be able to solve your problem by

Volune
  • 4,197
  • 18
  • 23