소스 검색

Fix npm install in example_check

Steven Silvester 4 년 전
부모
커밋
9b2a46a47e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)