Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't try to install cwd inside bundle

  • Loading branch information...
commit 313f2632b9f778ea9f1e66e4e9dd082e4766b52b 1 parent 11f0922
@isaacs isaacs authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/bundle.js
View
6 lib/bundle.js
@@ -72,6 +72,12 @@ function bundle (args, dir, cb_) {
log.info(location, "destroyed", cb)
})
+ if (cmd === npm.commands.install && args.length === 0) {
+ // `npm bundle install` --> npm bundle
+ // Don't try to install the cwd inside of ./node_modules
+ cmd = null
+ }
+
if (typeof cmd === "function") {
return cmd(args, cb)
}
Please sign in to comment.
Something went wrong with that request. Please try again.