diff --git a/README.rst b/README.rst index 3459572..c9bef3f 100644 --- a/README.rst +++ b/README.rst @@ -263,7 +263,7 @@ There are several alternatives that create isolated environments: Nave stores all environments in one directory ``~/.nave``. Can create per node version environments using `nave use envname versionname`. Can not pass additional arguments into configure (for example --without-ssl) - Can't run on windows because it relies on bash. + Can't run on windows because it relies on a POSIX shell. * `nvm `_ - Node Version Manager. It is necessarily to do `nvm sync` for caching available node.js diff --git a/nodeenv.py b/nodeenv.py index bccdfee..2066e63 100644 --- a/nodeenv.py +++ b/nodeenv.py @@ -816,7 +816,7 @@ def install_npm(env_dir, _src_dir, args): ) proc = subprocess.Popen( ( - 'bash', '-c', + 'sh', '-c', '. {0} && npm install -g npm@{1}'.format( _quote(join(env_dir, 'bin', 'activate')), args.npm, @@ -1177,7 +1177,7 @@ def main(): """, } -SHIM = """#!/usr/bin/env bash +SHIM = """#!/usr/bin/env sh export NODE_PATH='__NODE_VIRTUAL_ENV__/lib/node_modules' export NPM_CONFIG_PREFIX='__NODE_VIRTUAL_ENV__' export npm_config_prefix='__NODE_VIRTUAL_ENV__' @@ -1279,7 +1279,7 @@ def main(): ACTIVATE_SH = r""" -# This file must be used with "source bin/activate" *from bash* +# This file must be used with "source bin/activate" *from sh* # you cannot run it directly deactivate_node () {