What am I doing wrong with '–allow-fs-read=*'? Getting 'zsh: no matches found' error on Mac using Node.js Permission Model

huangapple go评论70阅读模式
英文:

What am I doing wrong with '--allow-fs-read=*'? Getting 'zsh: no matches found' error on Mac using Node.js Permission Model

问题

我正在尝试在MacOS Venture 13.3.1上使用新的Node.js权限模型进行实验。我已经安装了Node.js v20.1.0,但无论我输入以下命令:

node --experimental-permission --allow-fs-read=* index.js

我在终端中都会收到以下错误信息:

zsh: no matches found: --allow-fs-read=*

我不知道" --allow-fs-read=*"有什么问题。在我看来,它看起来很正常。

英文:

I am experimenting with the new Nodejs permission model on MacOS Venture 13.3.1. I have got Node.js v20.1.0 installed, and whenever I enter the following command:

node --experimental-permission --allow-fs-read=* index.js

I get the following error in the terminal:

zsh: no matches found: --allow-fs-read=*

I don't know what is wrong with "--allow-fs-read=*". It looks fine to me.

答案1

得分: 0

我已成功解决了。为使其正常工作,我使用反斜杠(\)转义了通配符(*):

node --experimental-permission --allow-fs-read=\* index.js
英文:

I have managed to solve it. To get it to work, I escaped the wildcard(*) with a backslash( \ ):

node --experimental-permission --allow-fs-read=\* index.js

huangapple
  • 本文由 发表于 2023年5月25日 17:52:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/76330994.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定