Explorar o código

Fix npm install in example_check

Steven Silvester %!s(int64=4) %!d(string=hai) anos
pai
achega
9b2a46a47e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/example_check.py

+ 1 - 1
examples/example_check.py

@@ -76,7 +76,7 @@ async def run_browser(url):
         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(["npm", "install", "puppeteer@^4"], cwd=target)
     shutil.copy(osp.join(here, 'chrome-example-test.js'), osp.join(target, 'chrome-example-test.js'))
     await run_async_process(["node", "chrome-example-test.js", url], cwd=target)