首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试实现nebula项目会引发错误: splatting运算符'@‘不能用于引用表达式中的变量

尝试实现nebula项目会引发错误: splatting运算符'@‘不能用于引用表达式中的变量
EN

Stack Overflow用户
提问于 2021-11-26 12:11:14
回答 1查看 42关注 0票数 0

我正在遵循此页面上的说明:https://qlik.dev/tutorials/build-a-chatbot-using-the-qlik-sense-natural-language-api

实际上,我收到了一个错误,内容如下:

代码语言:javascript
复制
    At line:1 char:5
npx @nebula.js/cli create mashup hello-saas
+     ~~~~~~~
The splatting operator '@' cannot be used to reference variables in an expression. '@nebula' can be used only as an argument to a command. To reference variables in an expression use '$nebula'.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : SplattingNotPermitted
EN

回答 1

Stack Overflow用户

发布于 2021-11-26 14:38:00

这是因为您在PowerShell中运行该命令。在那里你不能那么容易地使用@

有两个选项:

cmd

  • or,中运行
  • PowerShell中运行命令,将@命令括在引号中。像这样:npx "@nebula.js/cli" create mashup hello-saas
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70124213

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档