我在Bash中使用浏览器同步,它不会自动打开浏览器并[BS] Couldn't open browser (if you are using BrowserSync in a headless environment, you might want to set the open option to false)在我输入npm startAngular示例时说.
当然,没有选择在有限的Linux环境中打开浏览器(因为在Windows上的Ubuntu上没有在Bash中提供GUI支持).
如果我使用Powershell,它的工作正常.
我的环境:Windows上的Ubuntu上的VS Code + Bash.
但是有配置或解决方法吗?
我正在开发一个需要chrome对象的用户脚本,但我无法访问它。如何访问chrometampermonkey 用户脚本内的对象?也许,清单中的一些权限或者什么......
我使用Angular 2 + TypeScript,并在选项标签中获得NaN
app.component.ts:
export class AppComponent {
rooms = {
type: [
'Study room',
'Hall',
'Sports hall',
'department room',
'Service room',
'Restroom']
};
Run Code Online (Sandbox Code Playgroud)
app.component.html:
<select placeholder="Select an option">
<option *ngFor="let room-type of rooms.type">{{room-type}}</option>
</select>
Run Code Online (Sandbox Code Playgroud)
我无法弄清楚发生了什么,因为我无法调试插值和所有绑定操作,我只是不知道如何,而且Google-Bing没有帮助!
我在Windows 10上使用Visual Studio Code.
这就是它的样子:
我认为它是TypeScript导致这个问题,因为预计某些东西会得到数字变量,但是接收不是一个数字......
我玩过colortool.exe实用程序来更改终端的配色方案,然后将颜色重置为其默认值,但是现在Ubuntu的Bash显示了一些奇怪的颜色:
javascript ×2
angular ×1
bash ×1
browser-sync ×1
linux ×1
nan ×1
npm ×1
tampermonkey ×1
typescript ×1
ubuntu ×1
userscripts ×1