Explorar o código

Use jlpm in browser_check

Steven Silvester %!s(int64=4) %!d(string=hai) anos
pai
achega
df0acc292a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      jupyterlab/browser_check.py

+ 2 - 2
jupyterlab/browser_check.py

@@ -152,8 +152,8 @@ async def run_browser(url):
     if not osp.exists(osp.join(target, 'node_modules')):
         if not osp.exists(target):
             os.makedirs(osp.join(target))
-        await run_async_process(["npm", "init", "-y"], cwd=target)
-        await run_async_process(["npm", "install", "puppeteer@^4"], cwd=target)
+        await run_async_process(["jlpm", "init", "-y"], cwd=target)
+        await run_async_process(["jlpm", "install", "puppeteer@^4"], cwd=target)
     shutil.copy(osp.join(here, 'chrome-test.js'), osp.join(target, 'chrome-test.js'))
     await run_async_process(["node", "chrome-test.js", url], cwd=target)