You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
101 lines
4.1 KiB
101 lines
4.1 KiB
Index: lib/config/core.js |
|
--- lib/config/core.js.orig 2019-01-17 23:01:14.000000000 +0100 |
|
+++ lib/config/core.js 2019-01-18 09:35:37.768622000 +0100 |
|
@@ -292,7 +292,7 @@ |
|
fs.writeFile(target.path, data, 'utf8', function (er) { |
|
if (er) return then(er) |
|
if (where === 'user' && myUid && myGid) { |
|
- fs.chown(target.path, +myUid, +myGid, then) |
|
+ then() |
|
} else { |
|
then() |
|
} |
|
Index: lib/npm.js |
|
--- lib/npm.js.orig 2019-01-17 23:01:14.000000000 +0100 |
|
+++ lib/npm.js 2019-01-18 09:35:37.768915000 +0100 |
|
@@ -404,9 +404,7 @@ |
|
Object.defineProperty(npm, 'globalDir', |
|
{ |
|
get: function () { |
|
- return (process.platform !== 'win32') |
|
- ? path.resolve(npm.globalPrefix, 'lib', 'node_modules') |
|
- : path.resolve(npm.globalPrefix, 'node_modules') |
|
+ return path.resolve(npm.globalPrefix, 'lib', 'node', 'usr') |
|
}, |
|
enumerable: true |
|
}) |
|
Index: lib/search/all-package-metadata.js |
|
--- lib/search/all-package-metadata.js.orig 2019-01-18 09:35:37.769261000 +0100 |
|
+++ lib/search/all-package-metadata.js 2019-01-18 09:37:13.610366000 +0100 |
|
@@ -3,7 +3,6 @@ |
|
const BB = require('bluebird') |
|
|
|
const cacheFile = require('npm-cache-filename') |
|
-const chownr = BB.promisify(require('chownr')) |
|
const correctMkdir = BB.promisify(require('../utils/correct-mkdir.js')) |
|
const figgyPudding = require('figgy-pudding') |
|
const fs = require('graceful-fs') |
|
@@ -241,9 +240,7 @@ |
|
var cacheBase = path.dirname(cacheFile) |
|
log.silly('all-package-metadata', 'making sure cache dir exists at', cacheBase) |
|
return correctMkdir(opts.cache).then(st => { |
|
- return mkdir(cacheBase).then(made => { |
|
- return chownr(made || cacheBase, st.uid, st.gid) |
|
- }) |
|
+ return mkdir(cacheBase) |
|
}) |
|
} |
|
|
|
Index: lib/unbuild.js |
|
--- lib/unbuild.js.orig 2019-01-17 23:01:14.000000000 +0100 |
|
+++ lib/unbuild.js 2019-01-18 09:35:37.769754000 +0100 |
|
@@ -96,7 +96,7 @@ |
|
!npm.config.get('global')) { |
|
return cb() |
|
} |
|
- var manRoot = path.resolve(npm.config.get('prefix'), 'share', 'man') |
|
+ var manRoot = path.resolve(npm.config.get('prefix'), 'man') |
|
log.verbose('rmMans', 'man files are', pkg.man, 'in', manRoot) |
|
asyncMap(pkg.man, function (man, cb) { |
|
if (Array.isArray(man)) { |
|
Index: lib/utils/correct-mkdir.js |
|
--- lib/utils/correct-mkdir.js.orig 2019-01-17 23:01:14.000000000 +0100 |
|
+++ lib/utils/correct-mkdir.js 2019-01-18 09:35:37.769961000 +0100 |
|
@@ -1,4 +1,3 @@ |
|
-var chownr = require('chownr') |
|
var dezalgo = require('dezalgo') |
|
var fs = require('graceful-fs') |
|
var inflight = require('inflight') |
|
@@ -116,8 +115,5 @@ |
|
} |
|
|
|
function setPermissions (path, st, cb) { |
|
- chownr(path, st.uid, st.gid, function (er) { |
|
- if (er && er.code === 'ENOENT') return cb(null, st) |
|
- return cb(er, st) |
|
- }) |
|
+ cb(null, st) |
|
} |
|
Index: node_modules/bin-links/index.js |
|
--- node_modules/bin-links/index.js.orig 2019-01-17 23:01:14.000000000 +0100 |
|
+++ node_modules/bin-links/index.js 2019-01-18 09:35:37.770178000 +0100 |
|
@@ -117,7 +117,7 @@ |
|
function linkMans (pkg, folder, parent, gtop, opts) { |
|
if (!pkg.man || !gtop || process.platform === 'win32') return |
|
|
|
- var manRoot = path.resolve(opts.prefix, 'share', 'man') |
|
+ var manRoot = path.resolve(opts.prefix, 'man') |
|
opts.log.verbose('linkMans', 'man files are', pkg.man, 'in', manRoot) |
|
|
|
// make sure that the mans are unique. |
|
Index: node_modules/npm-lifecycle/index.js |
|
--- node_modules/npm-lifecycle/index.js.orig 2019-01-17 23:01:14.000000000 +0100 |
|
+++ node_modules/npm-lifecycle/index.js 2019-01-18 09:35:37.770448000 +0100 |
|
@@ -178,7 +178,6 @@ |
|
if (cfgsetting === 'warn-only') { |
|
if (isDifferentNodeInPath && !shouldPrependCurrentNodeDirToPATH.hasWarned) { |
|
if (foundExecPath) { |
|
- opts.log.warn('lifecycle', 'The node binary used for scripts is', foundExecPath, 'but npm is using', process.execPath, 'itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.') |
|
} else { |
|
opts.log.warn('lifecycle', 'npm is using', process.execPath, 'but there is no node binary in the current PATH. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.') |
|
}
|
|
|