NPM task fails on additional arguments
Issue #1
resolved
I tried configuring it like:
Executable: Node 0.10.x
Command: install glob@1.2.3
and I got errors like
simple 03-May-2013 03:10:17 Starting task 'Install glob' of type 'com.atlassian.bamboo.plugins.bamboo-nodejs-plugin:task.builder.npm'
command 03-May-2013 03:10:17 Beginning to execute external process for build 'CAV-MASTER-JSH'\n ... running command line: \n/opt/nodejs/node-v0.10.3-linux-x64/bin/npm install glob@3.2.1\n ... in: /opt/bamboo-agent/xml-data/build-dir/CAV-MASTER-JSH\n ... using extra environment variables: \n...
build 03-May-2013 03:10:19
build 03-May-2013 03:10:19 Usage: npm <command>
build 03-May-2013 03:10:19
build 03-May-2013 03:10:19 where <command> is one of:
build 03-May-2013 03:10:19 add-user, adduser, apihelp, author, bin, bugs, c, cache,
build 03-May-2013 03:10:19 completion, config, ddp, dedupe, deprecate, docs, edit,
build 03-May-2013 03:10:19 explore, faq, find, find-dupes, get, help, help-search,
build 03-May-2013 03:10:19 home, i, info, init, install, isntall, issues, la, link,
build 03-May-2013 03:10:19 list, ll, ln, login, ls, outdated, owner, pack, prefix,
build 03-May-2013 03:10:19 prune, publish, r, rb, rebuild, remove, restart, rm, root,
build 03-May-2013 03:10:19 run-script, s, se, search, set, show, shrinkwrap, star,
build 03-May-2013 03:10:19 stars, start, stop, submodule, tag, test, tst, un,
build 03-May-2013 03:10:19 uninstall, unlink, unpublish, unstar, up, update, version,
build 03-May-2013 03:10:19 view, whoami
build 03-May-2013 03:10:19
build 03-May-2013 03:10:19 npm <cmd> -h quick help on <cmd>
build 03-May-2013 03:10:19 npm -l display full usage info
build 03-May-2013 03:10:19 npm faq commonly asked questions
build 03-May-2013 03:10:19 npm help <term> search for help on <term>
build 03-May-2013 03:10:19 npm help npm involved overview
build 03-May-2013 03:10:19
build 03-May-2013 03:10:19 Specify configs in the ini-formatted file:
build 03-May-2013 03:10:19 /opt/bamboo-agent/.npmrc
build 03-May-2013 03:10:19 or on the command line via: npm <command> --key value
build 03-May-2013 03:10:19 Config info can be viewed via: npm help config
build 03-May-2013 03:10:19
build 03-May-2013 03:10:19 npm@1.2.17 /opt/nodejs/node-v0.10.3-linux-x64/lib/node_modules/npm
simple 03-May-2013 03:10:19 Finished task 'Install glob'
I expect what is really being run on the command line is more like npm "install glob@1.2.3"
than npm install glob@1.2.3
.
Comments (2)
-
-
- changed status to resolved
Merged in issacg/bamboo-nodejs-plugin/npm-multi-args (pull request #1)
support multiple arguments to NPM command
Fixes
#1→ <<cset c01ec6cd911e>>
- Log in to comment
Fixed by Pull request 1 (https://bitbucket.org/atlassian/bamboo-nodejs-plugin/pull-request/1/support-multiple-arguments-to-npm-command)