Node.js 无法安装playwright@1.0.2

Node.js 无法安装playwright@1.0.2,node.js,npm,playwright,Node.js,Npm,Playwright,嗨,我正在尝试安装剧作家 面对这个问题, $ npm i playwright > playwright@1.0.2 install /Users/chandanj/fr/play-wright-play/node_modules/playwright > node install.js internal/util.js:214 throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'original', 'function

嗨,我正在尝试安装剧作家

面对这个问题,

$ npm i playwright

> playwright@1.0.2 install /Users/chandanj/fr/play-wright-play/node_modules/playwright
> node install.js

internal/util.js:214
    throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'original', 'function');
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type function
    at promisify (internal/util.js:214:11)
    at Object.<anonymous> (/Users/chandanj/fr/play-wright-play/node_modules/extract-zip/index.js:11:18)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/chandanj/fr/play-wright-play/node_modules/playwright-core/lib/install/browserFetcher.js:19:17)
npm WARN play-wright@1.0.0 No description
npm WARN play-wright@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! playwright@1.0.2 install: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the playwright@1.0.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
$npm i剧作家
> playwright@1.0.2安装/Users/chandanj/fr/play wright play/node_模块/剧作家
>node install.js
内部/util.js:214
抛出新错误。TypeError('ERR_INVALID_ARG_TYPE','original','function');
^
TypeError[ERR\u INVALID\u ARG\u TYPE]:“original”参数必须是function类型
约定时(内部/util.js:214:11)
反对。(/Users/chandanj/fr/play-wright-play/node_-modules/extract-zip/index.js:11:18)
编译(Module.js:653:30)
在Object.Module.\u extensions..js(Module.js:664:10)
在Module.load(Module.js:566:32)
在tryModuleLoad时(module.js:506:12)
在Function.Module.\u加载(Module.js:498:3)
at Module.require(Module.js:597:17)
根据需要(内部/module.js:11:18)
反对。(/Users/chandanj/fr/play wright play/node_modules/play wright core/lib/install/browserFetcher.js:19:17)
警告播放-wright@1.0.0没有描述
警告播放-wright@1.0.0没有存储库字段。
npm错误!代码失效循环
npm错误!错误1
npm错误!playwright@1.0.2install:`node install.js`
npm错误!退出状态1
npm错误!
npm错误!失败playwright@1.0.2安装脚本。
npm错误!这可能不是npm的问题。上面可能还有其他日志输出。
无法找出问题的原因。
尝试了节点版本12.16.3和10.20.1

我知道您提到了节点版本。但是,
extract-zip
的问题似乎与节点版本有关,谢谢您的关注。我能够通过之前的错误,并登陆到另一个503谷歌浏览器不可用。我知道你提到了你的节点版本。但是,
extract-zip
的问题似乎与节点版本有关,谢谢您的关注。我能够通过之前的错误,登陆到另一个503谷歌浏览器不可用。