我已经安装flutter
,但是当我运行flutter doctor
验证安装时,我得到:-
Android SDK is missing command line tools
我已经仔细检查了命令行是否已安装。
\n\n我需要做什么才能消除此错误?
\n\n我已包含以下完整flutter doctor -v
输出:-
$ flutter doctor -v\n [\xe2\x9c\x93] Flutter (Channel beta, v0.3.1, on Mac OS X 10.13.4 17E202, locale en-AU)\n \xe2\x80\xa2 Flutter version 0.3.1 at /Users/chris/flutter\n \xe2\x80\xa2 Framework revision 12bbaba9ae (2 weeks ago), 2018-04-19 23:36:15 -0700\n \xe2\x80\xa2 Engine revision 09d05a3891\n \xe2\x80\xa2 Dart version 2.0.0-dev.48.0.flutter-fe606f890b\n\n[!] Android toolchain - develop for Android devices\n \xe2\x80\xa2 Android SDK at /usr/local/Caskroom/android-platform-tools/27.0.1\n \xe2\x80\xa2 Android …
Run Code Online (Sandbox Code Playgroud) 我正在尝试安装最新版本的 Angular (v11.2),我得到:-
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@angular/cli@11.2.0',
npm WARN EBADENGINE required: { node: '>= 10.13.0', npm: '^6.11.0', yarn: '>= 1.13.0' },
npm WARN EBADENGINE current: { node: 'v15.8.0', npm: '7.5.1' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: '@angular-devkit/architect@0.1102.0',
npm WARN EBADENGINE required: { node: '>= 10.13.0', npm: '^6.11.0', yarn: '>= 1.13.0' },
npm WARN EBADENGINE current: { node: 'v15.8.0', npm: '7.5.1' }
npm WARN EBADENGINE …
Run Code Online (Sandbox Code Playgroud) 当我跑步时:-
ffmpeg -v quiet -i "${INPUT}" -c:v libx265 -crf 23 "${OUTPUT}"
Run Code Online (Sandbox Code Playgroud)
即使设置loglevel
为silent
(请参阅下面的输出示例),我仍然可以从命令中获取输出
x265 [info]: HEVC encoder version 3.5+20-17839cc0d
x265 [info]: build info [Mac OS X][clang 11.0.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x265 [info]: Main profile, Level-3 (Main tier)
x265 [info]: Thread pool created using 4 threads
x265 [info]: Slices : 1
x265 [info]: frame threads / pool features : 2 / wpp(9 rows)
x265 [warning]: Source height < 720p; …
Run Code Online (Sandbox Code Playgroud) 使用 AngularJS 2.3.1,在以下 html 模板代码中:-
<table>
<tr>
<th>col 1</th>
<th>col 2</th>
</tr>
<tr>
<td>sum 1</td>
<td>sum 2</td>
</tr>
<tablerow *ngFor="let i of data" [item]="i"></tablerow>
</table>
Run Code Online (Sandbox Code Playgroud)
其中tablerow
组件 html 模板是:-
<tr>
<td>{{item.col1}}</td>
<td>{{item.col2}}</td>
</tr>
Run Code Online (Sandbox Code Playgroud)
当它被渲染时,组件生成的表行不会像普通表行那样被破坏。
为什么会发生这种情况?我需要做什么来解决这个问题?这是一个错误吗?
constructor (service: MyService) {}
ngOnInit() {
this.service.init();
}
Run Code Online (Sandbox Code Playgroud)
在上面的代码中,我得到:-
Property `service` does not exist on type 'MyComponment'
Run Code Online (Sandbox Code Playgroud)
然而,如果我宣布service
为private
它的工作原理。这里发生了什么?
——
[Angular 8.2.12,TypeScript 3.5.3]