不能在竹子里运行量角器

时间:2016-07-05 05:54:12

标签: node.js protractor bamboo

我正试图在竹子计划中运行我的量角器。我的package.json文件中有protractor的依赖项。在竹子计划中安装量角器后,当我运行脚本时,我收到以下错误:

line 2: protractor: command not found

在日志中: 它显示了安装了量角器:

protractor@3.3.0 node_modules/protractor
05-Jul-2016 05:48:51    ��������� jasminewd2@0.0.9
05-Jul-2016 05:48:51    ��������� q@1.4.1
05-Jul-2016 05:48:51    ��������� chalk@1.1.3 (ansi-styles@2.2.1, escape-string-regexp@1.0.5, supports-color@2.0.0, strip-ansi@3.0.1, has-ansi@2.0.0)
05-Jul-2016 05:48:51    ��������� adm-zip@0.4.7
05-Jul-2016 05:48:51    ��������� optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10)
05-Jul-2016 05:48:51    ��������� glob@6.0.4 (path-is-absolute@1.0.0, inherits@2.0.1, once@1.3.3, inflight@1.0.5, minimatch@3.0.2)
05-Jul-2016 05:48:51    ��������� saucelabs@1.0.1 (https-proxy-agent@1.0.0)
05-Jul-2016 05:48:51    ��������� jasmine@2.4.1 (exit@0.1.2, jasmine-core@2.4.1, glob@3.2.11)
05-Jul-2016 05:48:51    ��������� source-map-support@0.4.1 (source-map@0.1.32)
05-Jul-2016 05:48:51    ��������� request@2.67.0 (is-typedarray@1.0.0, oauth-sign@0.8.2, aws-sign2@0.6.0, forever-agent@0.6.1, tunnel-agent@0.4.3, caseless@0.11.0, stringstream@0.0.5, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.0, node-uuid@1.4.7, combined-stream@1.0.5, qs@5.2.0, tough-cookie@2.2.2, mime-types@2.1.11, form-data@1.0.0-rc4, bl@1.0.3, har-validator@2.0.6, http-signature@1.1.1, hawk@3.1.3)
05-Jul-2016 05:48:51    ��������� selenium-webdriver@2.52.0 (tmp@0.0.24, adm-zip@0.4.4, rimraf@2.5.3, ws@1.1.1, xml2js@0.4.4)
05-Jul-2016 05:48:51    

请让我知道我做错了什么。谢谢:))

1 个答案:

答案 0 :(得分:0)

您可以显式指定本地安装的protractor可执行文件的位置:

node_modules/.bin/protractor conf.js