Skip to content

GitLab

  • 菜单
项目 Groups 代码片段
    • 正在加载...
  • 帮助
    • 帮助
    • 支持
    • 社区论坛
    • 提交反馈
    • 为 GitLab 提交贡献
  • 登录
  • S steedos-platform
  • 项目信息
    • 项目信息
    • 动态
    • 标记
    • 成员
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • 议题 640
    • 议题 640
    • 列表
    • 看板
    • 服务台
    • 里程碑
  • 合并请求 58
    • 合并请求 58
  • CI/CD
    • CI/CD
    • 流水线
    • 作业
    • 计划
  • 部署
    • 部署
    • 环境
    • 发布
  • 监控
    • 监控
    • 指标
    • 事件
  • 软件包与镜像库
    • 软件包与镜像库
    • 软件包库
    • 基础设施库
  • 分析
    • 分析
    • CI/CD
    • 仓库
    • 价值流
  • Wiki
    • Wiki
  • 代码片段
    • 代码片段
  • 动态
  • 分支图
  • 创建新议题
  • 作业
  • 提交
  • 议题看板
收起侧边栏
  • steedos
  • steedos-platform
  • 议题
  • #2711

已关闭
开放中
Created 1月 17, 2022 by 庄建国@zhuangjianguoOwner

最新版本npx create app命令行无法创建项目报错:Must use import to load ES Modul

Created by: yinlianghui

node版本12.22.9,steedos-cli刚安装的,版本为2.1.73 image 拨VPN也没用,报错信息:

Must use import to load ES Module: /Users/yinlianghui/.npm/_npx/56761/lib/node_modules/create-steedos-app/node_modules/@geek/spinner/node_modules/chalk/source/index.js
require() of ES modules is not supported.
require() of /Users/yinlianghui/.npm/_npx/56761/lib/node_modules/create-steedos-app/node_modules/@geek/spinner/node_modules/chalk/source/index.js from /Users/yinlianghui/.npm/_npx/56761/lib/node_modules/create-steedos-app/node_modules/@geek/spinner/index.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename /Users/yinlianghui/.npm/_npx/56761/lib/node_modules/create-steedos-app/node_modules/@geek/spinner/node_modules/chalk/source/index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /Users/yinlianghui/.npm/_npx/56761/lib/node_modules/create-steedos-app/node_modules/@geek/spinner/node_modules/chalk/package.json.
%d位指派人
分配到
工时统计