Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: npm/npm
...
head fork: npm/npm
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Sep 01, 2012
@mfncooper mfncooper Friendly error message when command is omitted. 7827181
Commits on Sep 16, 2012
@mfncooper mfncooper Merge pull request #2772 from mfncooper/fix_run_no_command
Improved error message when runScript command is omitted
5a97efa
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/run-script.js
View
1  lib/run-script.js
@@ -67,6 +67,7 @@ runScript.completion = function (opts, cb) {
}
function runScript (args, cb) {
+ if (!args.length) return cb(runScript.usage)
var pkgdir = args.length === 1 ? process.cwd()
: path.resolve(npm.dir, args[0])
, cmd = args.pop()

No commit comments for this range

Something went wrong with that request. Please try again.