【发布时间】:2020-12-14 19:24:12
【问题描述】:
我正在尝试使用二进制文件安装 cypress。目前在 vs 代码中使用以下命令:CYPRESS_INSTALL_BINARY=C:\Users\abcd\Downloads\cypress.zip npm install cypress
来源:https://docs.cypress.io/guides/getting-started/installing-cypress.html#Install-binary
这对我不起作用,显示以下错误:
CYPRESS_INSTALL_BINARY=C:\Users\abcd\Downloads\cypress.zip : The term 'CYPRESS_INSTALL_BINARY=C:\Users\abcd\Downloads\cypress.zip' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ CYPRESS_INSTALL_BINARY=C:\Users\abcd\Downloads\cypress.zip npm ins ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (CYPRESS_INSTALL...ads\cypress.zip:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
谁能帮我解决这个问题? 谢谢!
【问题讨论】:
-
您是否按照文档尝试了另外两种方法?
-
选项 1:我不想安装冲突的二进制版本。选项 2:无法绕过公司防火墙。