You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

执行npx @nebula.js/cli命令报splatting运算符'@'错误如何解决

问题根因

该错误为PowerShell终端的特有语法冲突:PowerShell将命令中的@符号识别为splatting运算符,会尝试将@nebula作为变量解析,和npm包的@前缀命名规则发生冲突,因此抛出ParserError。

解决方案

  • 方案1:在PowerShell中给带@的包名添加双引号包裹,修改后命令如下:
    npx "@nebula.js/cli" create mashup hello-saas
    
    加引号后PowerShell会将@nebula.js/cli识别为普通字符串参数传递给npx,不会触发语法校验。
  • 方案2:切换到系统自带的cmd终端执行原始命令即可,cmd不存在@符号的splatting语法规则,可正常解析命令。

内容的提问来源于stack exchange,提问作者AOR

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.09.24 15:54:07