@name 获取指定node版本的node路径 @author hwliang<2021-08-10> @param nodejs_version nodejs版本 @return string
(self,nodejs_version)
| 230 | return pnpm_path |
| 231 | |
| 232 | def get_node_bin(self,nodejs_version): |
| 233 | ''' |
| 234 | @name 获取指定node版本的node路径 |
| 235 | @author hwliang<2021-08-10> |
| 236 | @param nodejs_version<string> nodejs版本 |
| 237 | @return string |
| 238 | ''' |
| 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 | ''' |
no test coverage detected