我在尝试安装时总是遇到错误 go-pear.phar
这是错误,在遇到Enter问题后1-13, 'all' or Enter to continue:
1-13, 'all' or Enter to continue:
**ERROR**
Please, enter the php.exe path.
Run Code Online (Sandbox Code Playgroud)
我的环境路径中也安装了 PHP。我确实检查php --version并收到了消息
C:\xampp\php>php --version
PHP 7.2.31 (cli) (built: May 12 2020 10:26:32) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
Run Code Online (Sandbox Code Playgroud)
所以我继续go-pear.phar使用命令进行安装。但我一直被困在上面的错误中。
C:\xampp\php>php go-pear.phar
Are you installing a system-wide PEAR or a local copy?
(system|local) [system] :
Below is …Run Code Online (Sandbox Code Playgroud) 我没有看到任何关于这个问题的帖子。我计划做的是生成npm auditjson 文件,但我只会生成具有高或严重严重性的包列表。
npm audit -audit-level=critical我看到文档这是检查审核的方式,严重性很关键。而且我知道有一个直接在终端生成json的命令是npm audit -json。我将两者结合起来:
npm audit -audit-level=critical -json
这很好用,它在终端中显示 json,但除了我无法一直向上滚动以读取所有内容。另外,我需要编写一个 javascript 来查看审计的 json 文件的数据。那么有没有办法写一个json文件呢npm audit?
我确信这是简单的代码,但我遇到了奇怪的错误但没有答案。我也确实从中查找了答案:get and set in TypeScript
但我的代码是完全相同的。但是当我设置实例的属性时出现此错误:
This expression is not callable.
Type 'String' has no call signatures
Run Code Online (Sandbox Code Playgroud)
这是我的代码
This expression is not callable.
Type 'String' has no call signatures
Run Code Online (Sandbox Code Playgroud)
我有错误character.firstname("Saerlund");
这是什么意思?我不明白代码有什么问题。