File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,12 @@ def log_versions():
109109
110110def setup_nodenv ():
111111 if os .path .isdir ('/usr/local/share/nodenv' ):
112- os .environ ['NODENV_ROOT' ] = '/usr/local/share/nodenv'
113- os .environ ['PATH' ] = '/usr/local/share/nodenv/bin:/usr/local/share/nodenv/shims:' + os .environ ['PATH' ]
114- os .environ ['NODENV_VERSION' ] = 'v0.10.21'
112+ nodenv_root = os .path .join (os .environ ['HOME' ], '.nodenv' )
113+ os .environ ['NODENV_ROOT' ] = nodenv_root
114+ os .environ ['PATH' ] = nodenv_root + '/bin:' + nodenv_root + '/shims:' + os .environ ['PATH' ]
115+ os .environ ['NODENV_VERSION' ] = 'v4.5.0'
116+ subprocess .check_call (['/usr/local/share/nodenv/bin/nodenv' , 'install' , os .environ ['NODENV_VERSION' ]])
117+ subprocess .check_call (['/usr/local/share/nodenv/bin/nodenv' , 'rehash' ])
115118
116119
117120if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments