attempt to fix usage when volta is installing node
This commit is contained in:
parent
4da32a122b
commit
b12d1d6e82
@ -243,7 +243,9 @@ def get_package_manager(on_failure_return_none: bool = False) -> str | None:
|
|||||||
"""
|
"""
|
||||||
npm_path = path_ops.get_npm_path()
|
npm_path = path_ops.get_npm_path()
|
||||||
if npm_path is not None:
|
if npm_path is not None:
|
||||||
return str(Path(npm_path).resolve())
|
if constants.IS_WINDOWS:
|
||||||
|
return str(Path(npm_path).resolve())
|
||||||
|
return npm_path
|
||||||
if on_failure_return_none:
|
if on_failure_return_none:
|
||||||
return None
|
return None
|
||||||
raise FileNotFoundError("NPM not found. You may need to run `reflex init`.")
|
raise FileNotFoundError("NPM not found. You may need to run `reflex init`.")
|
||||||
|
Loading…
Reference in New Issue
Block a user