我有一个barebone创建-react,除了通过npm i cypress安装柏树什么都没有。
当我运行npx cypress open时,会得到以下错误:
ERR_FAILED (-2) loading 'http://localhost:49770/__launchpad/index.html'
Error: ERR_FAILED (-2) loading 'http://localhost:49770/__launchpad/index.html'
at rejectAndCleanup (node:electron/js2c/browser_init:165:7500)
at EventEmitter.stopLoadingListener (node:electron/js2c/browser_init:165:7875)
at EventEmitter.emit (node:events:527:28)
at EventEmitter.emit (node:domain:475:12)这是什么原因?我试图阻止防火墙,重新启动我的电脑,但它没有工作。
发布于 2022-10-20 16:23:34
我找到了一个对我有用的解决方案。我使用管理权限在cmd中运行该命令。根据本文,您需要在没有管理权限的cmd中运行它。
https://stackoverflow.com/questions/74132385
复制相似问题