mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
setup.py: run npm with --unsafe-perm
this is the equivalent to bower's `--allow-root` that we had in bower-proper fixes issues when installing jupyterhub from source with sudo
This commit is contained in:
8
setup.py
8
setup.py
@@ -121,12 +121,6 @@ from distutils.command.build_py import build_py
|
||||
from distutils.command.sdist import sdist
|
||||
|
||||
|
||||
npm_path = os.pathsep.join([
|
||||
pjoin(here, 'node_modules', '.bin'),
|
||||
os.environ.get("PATH", os.defpath),
|
||||
])
|
||||
|
||||
|
||||
def mtime(path):
|
||||
"""shorthand for mtime"""
|
||||
return os.stat(path).st_mtime
|
||||
@@ -174,7 +168,7 @@ class NPM(BaseCommand):
|
||||
return
|
||||
|
||||
print("installing js dependencies with npm")
|
||||
check_call(['npm', 'install', '--progress=false'], cwd=here, shell=shell)
|
||||
check_call(['npm', 'install', '--progress=false', '--unsafe-perm'], cwd=here, shell=shell)
|
||||
os.utime(self.node_modules)
|
||||
|
||||
os.utime(self.bower_dir)
|
||||
|
Reference in New Issue
Block a user