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 'scripts')
-rwxr-xr-xscripts/activate.js2
-rwxr-xr-xscripts/deactivate.js2
-rwxr-xr-xscripts/install.js2
-rwxr-xr-xscripts/uninstall.js2
4 files changed, 4 insertions, 4 deletions
diff --git a/scripts/activate.js b/scripts/activate.js
index 990ded0e4..3fc52a24f 100755
--- a/scripts/activate.js
+++ b/scripts/activate.js
@@ -1,6 +1,6 @@
#!/usr/local/bin/node
var fs = require("fs"),
- version = process.env["npm.package.version"],
+ version = process.env.npm_package_version,
bin = "/usr/local/bin/npm",
versionedBin = "/usr/local/bin/npm-"+version;
diff --git a/scripts/deactivate.js b/scripts/deactivate.js
index e59caf740..2b8d62dea 100755
--- a/scripts/deactivate.js
+++ b/scripts/deactivate.js
@@ -1,7 +1,7 @@
#!/usr/local/bin/node
var fs = require("fs"),
- version = process.env["npm.package.version"],
+ version = process.env.npm_package_version,
bin = "/usr/local/bin/npm";
fs.lstat(bin, function (er, st) {
diff --git a/scripts/install.js b/scripts/install.js
index 603f73d69..b160d4d5c 100755
--- a/scripts/install.js
+++ b/scripts/install.js
@@ -1,7 +1,7 @@
#!/usr/local/bin/node
var fs = require("fs"),
- version = process.env["npm.package.version"],
+ version = process.env.npm_package_version,
bin = "/usr/local/bin/npm-"+version,
clijs = require("path").join(process.cwd(), "cli.js"),
sys = require("sys");
diff --git a/scripts/uninstall.js b/scripts/uninstall.js
index eeb53c9ab..16ac33242 100755
--- a/scripts/uninstall.js
+++ b/scripts/uninstall.js
@@ -1,7 +1,7 @@
#!/usr/local/bin/node
var fs = require("fs"),
- version = process.env["npm.package.version"],
+ version = process.env.npm_package_version,
versionedBin = "/usr/local/bin/npm-"+version;
fs.lstat(versionedBin, function (er, st) {