MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / get_node_bin

Method get_node_bin

class/projectModel/nodejsModel.py:232–241  ·  view source on GitHub ↗

@name 获取指定node版本的node路径 @author hwliang<2021-08-10> @param nodejs_version nodejs版本 @return string

(self,nodejs_version)

Source from the content-addressed store, hash-verified

230 return pnpm_path
231
232 def get_node_bin(self,nodejs_version):
233 ''&#x27;
234 @name 获取指定node版本的node路径
235 @author hwliang<2021-08-10>
236 @param nodejs_version<string> nodejs版本
237 @return string
238 ''&#x27;
239 node_path = '{}/{}/bin/node'.format(self._nodejs_path,nodejs_version)
240 if not os.path.exists(node_path): return False
241 return node_path
242
243 def get_last_env(self,nodejs_version,project_cwd = None):
244 ''&#x27;

Callers 4

start_projectMethod · 0.95
start_projectMethod · 0.95
start_projectMethod · 0.95

Calls 2

formatMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected