简体   繁体   English

在node.js中使用'scrypt'模块时出现'找不到指定的模块'错误

[英]'The specified module could not be found' error when using 'scrypt' module in node.js

I'm trying to use 'scrypt' module. 我正在尝试使用“ scrypt”模块。 The problem is that when I try to run my nodejs application (node app.js), I get this error: 问题是,当我尝试运行自己的nodejs应用程序(node app.js)时,出现以下错误:

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: 我在这一行安装了“ scrypt”模块:

npm install scrypt -msvs_version=2012

the -msvs_version is taken from this answer -msvs_version取自此答案

You should have a look at this node-scrypt issue . 您应该看看这个node-scrypt问题

According to what is said there, you should be able to solve your problem by 根据那里所说的,您应该能够通过以下方式解决您的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM