PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
util
var isRoot = require('is-root'); var createError = require('./createError'); var renderer; function rootCheck(options, config) { var errorMsg; // Allow running the command as root if (options.allowRoot || config.allowRoot) { return; } errorMsg = 'Since bower is a user command, there is no need to execute it with \ superuser permissions.\nIf you\'re having permission errors when using bower without \ sudo, please spend a few minutes learning more about how your system should work and \ make any necessary repairs.\n\n\ http://www.joyent.com/blog/installing-node-and-npm\n\ https://gist.github.com/isaacs/579814\n\n\ You can however run a command with sudo using "--allow-root" option'; if (isRoot()) { var cli = require('./cli'); renderer = cli.getRenderer('', false, config); renderer.error( createError('Cannot be run with sudo', 'ESUDO', { details: errorMsg }) ); process.exit(1); } } module.exports = rootCheck;
[-] resolve.js
[edit]
[-] copy.js
[edit]
[+]
..
[-] relativeToBaseDir.js
[edit]
[-] validLink.js
[edit]
[-] readJson.js
[edit]
[-] template.js
[edit]
[-] rimraf.js
[edit]
[-] semver.js
[edit]
[-] isPathAbsolute.js
[edit]
[-] cmd.js
[edit]
[-] fs.js
[edit]
[-] createLink.js
[edit]
[-] download.js
[edit]
[-] abbreviations.js
[edit]
[-] extract.js
[edit]
[-] createError.js
[edit]
[-] userAgent.js
[edit]
[-] rootCheck.js
[edit]
[-] cli.js
[edit]
[-] removeIgnores.js
[edit]