Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';不要从powershell启动chrome。。有什么想法吗_Powershell_Google Chrome - Fatal编程技术网

Can';不要从powershell启动chrome。。有什么想法吗

Can';不要从powershell启动chrome。。有什么想法吗,powershell,google-chrome,Powershell,Google Chrome,我打开它是因为我使用karma进行的测试无法正常启动chrome并运行测试。当我尝试时,我在一个无响应的chrome会话中遇到了一个黑屏 从那以后,我明白了因果报应可能与我的问题无关。从powershell时代推出Chrome时,它似乎不起作用 $ & 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe' 将启动损坏的chrome会话 所以,我猜因果报应与此无关。这看起来像是chrome/powershell的问题

我打开它是因为我使用karma进行的测试无法正常启动chrome并运行测试。当我尝试时,我在一个无响应的chrome会话中遇到了一个黑屏

从那以后,我明白了因果报应可能与我的问题无关。从powershell时代推出Chrome时,它似乎不起作用

$ & 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
将启动损坏的chrome会话

所以,我猜因果报应与此无关。这看起来像是chrome/powershell的问题

有什么想法吗


Powershell(%SystemRoot%\system32\WindowsPowerShell\v1.0\Powershell.exe)和64位chrome。

尝试一下,看看实际启动进程是否会导致不同的行为

Start-Process -FilePath "${env:ProgramFiles(x86)}\Google\Chrome\Application\chrome.exe"

注意到chrome通常无法从我的powershell窗口正常运行。您的代码片段中的
$
是什么?这是bash提示标志,不是PowerShell标志-除非您自定义了iTunes,否则您使用的是32位操作系统,这不是32位PowerShell。好吧,很公平。我可能错了,但我不确定是否有一种简单的方法可以检查powershell。我只是假设它已经用完了sys32,所以32位(%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe)@tessellingheckler-可能是真的。时髦~也许吧?我知道我已经通过这种方式成功地发布了几个应用程序。就像我说的Chrome发布,只是没有成功。结果是一样的。黑屏chrome。如果双击该目录启动exe@Chris在目录中双击、在webstorm、powershell(x86)、桌面快捷方式等中调用后工作正常。所有这些都工作正常,并以我的google作为我的主页打开chrome。
powershell(x86)
是x86 chrome吗@ChrisNope,版本61.0.3163.91(官方版本)(64位)