找不到模块'iap_verifier'

时间:2016-03-12 21:28:57

标签: javascript node.js coffeescript npm

我正在安装此服务器 - https://github.com/surespot/web-server。我安装了node.js,npm,CoffeScript和所有依赖项

apt-get install nodejs npm
npm install -g coffee-script@1.6.3
npm install

当我执行命令coffee server/cluster.coffee时,我收到错误:

Error: Cannot find module 'iap_verifier'
  at Function.Module._resolveFilename (module.js:338:15)
  at Function.Module._load (module.js:280:25)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Object.<anonymous> (/var/www/web-server/server/cluster.coffee:35:15, <js>:64:17)
  at Object.<anonymous> (/var/www/web-server/server/cluster.coffee:1:1, <js>:4482:4)
  at Module._compile (module.js:456:26)

但模块文件存在于node_modules dir。

我也尝试手动安装模块

npm install iap_verifier

npm install iap_verifier -g

1 个答案:

答案 0 :(得分:0)

确保您需要主app.js文件中的模块并尝试运行sudo npm install iap_verifier -g