【发布时间】:2016-07-05 22:28:01
【问题描述】:
我正在尝试在竹计划中运行我的量角器。我的 package.json 文件中包含量角器的依赖项。在竹计划中安装量角器后,当我运行脚本时,出现以下错误:
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
请让我知道我做错了什么。谢谢你:)
【问题讨论】:
-
您的竹子是否使用 nodejs 正确配置?我们得到这个错误是因为它无法识别该命令。
-
您好,我首先运行 install 命令来安装模块。你能告诉我一个用竹子配置量角器的例子吗?
-
我个人没有用过bamboo,但是你应该可以运行protractor,因为它是一个nodejs程序,为此你需要用nodejs配置bamboo。你可以看看confluence.atlassian.com/bamboo/…。如果有帮助
标签: node.js protractor bamboo