Cypress:无法安装二进制文件

pk7*_*786 6 node.js cypress

我正在尝试使用二进制安装 cypress。目前在 vs code 中使用以下命令: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
Run Code Online (Sandbox Code Playgroud)

谁能帮我解决这个问题吗?谢谢!

Mom*_*min 0

让它工作...通过将 UNIX 设置为 Windows cmd 上的路径

SET CYPRESS_INSTALL_BINARY=C:/Users/myUserName/Downloads/cypress.zip