Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/uninstall.js')
-rw-r--r--lib/uninstall.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/uninstall.js b/lib/uninstall.js
index 33de8da64..b7b9e3bb5 100644
--- a/lib/uninstall.js
+++ b/lib/uninstall.js
@@ -29,7 +29,7 @@ function uninstall (args, cb) {
: npm.prefix
var dryrun = !!npm.config.get('dry-run')
- if (args.length === 1 && args[0] === ".") args = []
+ if (args.length === 1 && args[0] === '.') args = []
args = args.filter(function (a) {
return path.resolve(a) !== where
})
@@ -38,8 +38,8 @@ function uninstall (args, cb) {
new Uninstaller(where, dryrun, args).run(cb)
} else {
// remove this package from the global space, if it's installed there
- readJson(path.resolve(npm.localPrefix, "package.json"), function (er, pkg) {
- if (er && er.code !== "ENOENT" && er.code !== "ENOTDIR") return cb(er)
+ readJson(path.resolve(npm.localPrefix, 'package.json'), function (er, pkg) {
+ if (er && er.code !== 'ENOENT' && er.code !== 'ENOTDIR') return cb(er)
if (er) return cb(uninstall.usage)
new Uninstaller(where, dryrun, [pkg.name]).run(cb)
})