diff options
Diffstat (limited to 'deps/npm/lib/edit.js')
-rw-r--r-- | deps/npm/lib/edit.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/npm/lib/edit.js b/deps/npm/lib/edit.js index 8e9bbd1797..48bcd5d346 100644 --- a/deps/npm/lib/edit.js +++ b/deps/npm/lib/edit.js @@ -22,8 +22,8 @@ function edit (args, cb) { )) } p = p.split('/') - .join('/node_modules/') - .replace(/(\/node_modules)+/, '/node_modules') + .join('/node_modules/') + .replace(/(\/node_modules)+/, '/node_modules') var f = path.resolve(npm.dir, p) fs.lstat(f, function (er) { if (er) return cb(er) |