We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent caf69aa commit 093be8bCopy full SHA for 093be8b
tools/install.py
@@ -154,7 +154,7 @@ def npm_files(action):
154
action([link_path], 'bin/npm')
155
elif action == install:
156
try_symlink('../lib/node_modules/npm/bin/npm-cli.js', link_path)
157
- if os.environ['PORTABLE']:
+ if os.environ.get('PORTABLE'):
158
# This crazy hack is necessary to make the shebang execute the copy
159
# of node relative to the same directory as the npm script. The precompiled
160
# binary tarballs use a prefix of "/" which gets translated to "/bin/node"
0 commit comments