Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
--without-npm option
Browse files Browse the repository at this point in the history
Fixes #2353.
  • Loading branch information
indutny authored and ry committed Dec 17, 2011
1 parent e61de70 commit a9f2c4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions configure
Expand Up @@ -23,6 +23,11 @@ parser.add_option("--prefix",
dest="prefix",
help="Select the install prefix (defaults to /usr/local)")

parser.add_option("--without-npm",
action="store_true",
dest="without_npm",
help="Don\'t install the bundled npm package manager")

parser.add_option("--without-ssl",
action="store_true",
dest="without_ssl",
Expand Down Expand Up @@ -162,6 +167,7 @@ def configure_node(o):
o['variables']['node_debug'] = b(options.debug)
o['variables']['node_prefix'] = options.prefix if options.prefix else ''
o['variables']['node_use_dtrace'] = b(options.with_dtrace)
o['variables']['node_install_npm'] = b(not options.without_npm)
o['variables']['host_arch'] = host_arch()
o['variables']['target_arch'] = target_arch()

Expand Down
2 changes: 1 addition & 1 deletion tools/installer.js
Expand Up @@ -95,7 +95,7 @@ if (cmd === 'install') {
copy('out/Release/node', 'bin/node');

// Install npm (eventually)
if (variables.node_install_npm) {
if (variables.node_install_npm == 'true') {
copy('deps/npm', 'lib/node_modules/npm');
queue.push('ln -sF ../lib/node_modules/npm/bin/npm-cli.js ' +
path.join(node_prefix, 'bin/npm'));
Expand Down

0 comments on commit a9f2c4a

Please sign in to comment.