Jenkins" options.provider需要创建一个新的pkgcloud客户端"错误

时间:2017-10-16 18:23:51

标签: mongodb jenkins server automation devops

我目前正在为我的服务器设置Jenkins。 我通过npm安装了pkgcloud模块,现在我收到了以下错误:

 Error: options.provider is required to create a new pkgcloud client.

一些日志:

 1) "before all" hook: global before
(node:55096) DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0, use `openUri()` instead, or set the `useMongoClient` option if using `connect()` or `createConnection()`. See http://mongoosejs.com/docs/connections.html#use-mongo-client
After all, removing temp directories...
./temp removed.
./data removed.

  0 passing (983ms)
  1 failing

  1)  "before all" hook: global before:
     Error: options.provider is required to create a new pkgcloud client.
    at Object.pkgcloud.(anonymous function).createClient (/Users/Shared/Jenkins/.jenkins/node_modules/pkgcloud/lib/pkgcloud.js:83:13)
    at new Imager (/Users/Shared/Jenkins/.jenkins/node_modules/imager/lib/imager.js:43:34)
    at Object.<anonymous> (app/routes/uploads.js:7:14)
    at Module.load (/Users/Shared/Jenkins/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
    at require (internal/module.js:20:19)
    at module.exports (app/routes.js:18:17)
    at Object.<anonymous> (app.js:155:27)
    at Module.load (/Users/Shared/Jenkins/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
    at require (internal/module.js:20:19)
    at Context.<anonymous> (tests/helper.js:43:16)

感谢任何帮助,因为我无法在网上找到答案。 谢谢!

1 个答案:

答案 0 :(得分:1)

找到解决方案:

问题是我没有在grunt之前进行npm安装。