Permalink
Browse files

Moved imports up above complete function.

  • Loading branch information...
1 parent 8d12a0f commit 2670a551212ec98a30d01417d2f1116ff6a31090 @deestan committed Jul 5, 2012
Showing with 15 additions and 15 deletions.
  1. +15 −15 lib/install.js
View
@@ -25,6 +25,21 @@ install.usage = "npm install <tarball file>"
+ "\npresent, installs dependencies specified in the shrinkwrap."
+ "\nOtherwise, installs dependencies from ./package.json."
+var npm = require("./npm.js")
+ , semver = require("semver")
+ , readJson = require("read-package-json")
+ , log = require("npmlog")
+ , path = require("path")
+ , fs = require("graceful-fs")
+ , cache = require("./cache.js")
+ , asyncMap = require("slide").asyncMap
+ , chain = require("slide").chain
+ , output
+ , url = require("url")
+ , mkdir = require("mkdirp")
+ , lifecycle = require("./utils/lifecycle.js")
+ , archy = require("archy")
+
install.completion = function (opts, cb) {
// install can complete to a folder with a package.json, or any package.
// if it has a slash, then it's gotta be a folder
@@ -55,21 +70,6 @@ install.completion = function (opts, cb) {
})
}
-var npm = require("./npm.js")
- , semver = require("semver")
- , readJson = require("read-package-json")
- , log = require("npmlog")
- , path = require("path")
- , fs = require("graceful-fs")
- , cache = require("./cache.js")
- , asyncMap = require("slide").asyncMap
- , chain = require("slide").chain
- , output
- , url = require("url")
- , mkdir = require("mkdirp")
- , lifecycle = require("./utils/lifecycle.js")
- , archy = require("archy")
-
function install (args, cb_) {
function cb (er, installed) {

0 comments on commit 2670a55

Please sign in to comment.