Lines Matching refs:pkg
15 asyncMap(args, function (pkg, done) { argument
17 [hasMinimumFields, pkg],
18 [checkSelf, idealTree, pkg, force],
19 [isInstallable, idealTree, pkg]
24 function hasMinimumFields (pkg, cb) { argument
25 if (pkg.name === '' || pkg.name == null) {
26 return cb(new Error(`Can't install ${pkg._resolved}: Missing package name`))
27 } else if (pkg.version === '' || pkg.version == null) {
28 return cb(new Error(`Can't install ${pkg._resolved}: Missing package version`))
51 var isInstallable = module.exports.isInstallable = function (idealTree, pkg, next) {
60 checkEngine(pkg, npm.version, nodeVersion, force, strict, iferr(next, thenWarnEngineIssues))
63 checkPlatform(pkg, force, next)
67 function checkSelf (idealTree, pkg, force, next) {
68 if (idealTree.package && idealTree.package.name !== pkg.name) return next()
70 …var warn = new Error("Wouldn't install " + pkg.name + ' as a dependency of itself, but being force…
75 var er = new Error('Refusing to install package with name "' + pkg.name +
77 'also called "' + pkg.name + '". Did you name your project the same\n' +