Coder Social home page Coder Social logo

arco-design / arco-cli Goto Github PK

View Code? Open in Web Editor NEW
209.0 6.0 77.0 3.99 MB

CLI tool for Arco Design

Home Page: https://arco.design/docs/material/guide

License: MIT License

TypeScript 90.10% JavaScript 4.30% Shell 0.13% SCSS 2.04% CSS 3.24% MDX 0.02% Less 0.16%
arco-design arco-cli cli

arco-cli's Introduction

Arco CLI

A command-line interface tool for creating, developing and managing Arco materials.

How to start

npm run init to set up environment.

lerna run dev to enter dev mode.

arco-cli's People

Contributors

chelestewang avatar crossskyli avatar feiyan-nan avatar flsion avatar headwindz avatar lianghx-319 avatar lrenc avatar misterluffy avatar pengjiyuan avatar shanejix avatar show8e avatar yuhan0709 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

arco-cli's Issues

打包发布的时候定义的 webpack 插件无效

Describe the bug
在开发时需要引入一个插件,我将该插件按照以下方式在 .storybook/main.js 中定义使用:

const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
module.exports = {
  // ...
  webpackFinal: (config) => {
    // ...
    if (!config.plugins) {
      config.plugins = [];
    }
    config.plugins.push(new MonacoWebpackPlugin());
    return config;
  },
};

在开发时,该插件正常生效,打包发布后,该插件无效,目前尝试了在 .config/webpack.config.js 中使用该插件,依然无效:

const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
  const finalConfig = merge(config, {
    output: {
      // ...
    },
    plugins: [new MonacoWebpackPlugin()]
  });

To Reproduce
Steps to reproduce the behavior:

Expected behavior
插件正常生效

Screenshots

Desktop (please complete the following information):

  • OS: MacOS
  • node version v16.13.1

Additional context
Add any other context about the problem here.

执行 npm install -g argo-cli 时报错,未找到 OpenSSL 或者 Libgcrypt

环境:M1Mac OS 12.6

执行 npm install -g argo-cli 提示

npm ERR! code 1
npm ERR! path /opt/homebrew/lib/node_modules/argo-cli/node_modules/nodegit
npm ERR! command failed
npm ERR! command sh -c -- node lifecycleScripts/preinstall
npm ERR! [nodegit] Running pre-install script
npm ERR! [nodegit] Configuring libssh2.
npm ERR! Error: Command failed: /opt/homebrew/lib/node_modules/argo-cli/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/opt/homebrew/lib/node_modules/argo-cli/node_modules/nodegit/vendor/openssl/openssl
npm ERR! configure: error: cannot find OpenSSL or Libgcrypt,
npm ERR! try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH
npm ERR! 
npm ERR!     at ChildProcess.exithandler (node:child_process:412:12)
npm ERR!     at ChildProcess.emit (node:events:513:28)
npm ERR!     at maybeClose (node:internal/child_process:1091:16)
npm ERR!     at ChildProcess._handle.onexit (node:internal/child_process:302:5) {
npm ERR!   code: 1,
npm ERR!   killed: false,
npm ERR!   signal: null,
npm ERR!   cmd: '/opt/homebrew/lib/node_modules/argo-cli/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/opt/homebrew/lib/node_modules/argo-cli/node_modules/nodegit/vendor/openssl/openssl'
npm ERR! }
npm ERR! configure: error: cannot find OpenSSL or Libgcrypt,
npm ERR! try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH
npm ERR! 
npm ERR! [nodegit] ERROR - Could not finish preinstall
npm ERR! Error: Command failed: /opt/homebrew/lib/node_modules/argo-cli/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/opt/homebrew/lib/node_modules/argo-cli/node_modules/nodegit/vendor/openssl/openssl
npm ERR! configure: error: cannot find OpenSSL or Libgcrypt,
npm ERR! try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH
npm ERR! 
npm ERR!     at ChildProcess.exithandler (node:child_process:412:12)
npm ERR!     at ChildProcess.emit (node:events:513:28)
npm ERR!     at maybeClose (node:internal/child_process:1091:16)
npm ERR!     at ChildProcess._handle.onexit (node:internal/child_process:302:5) {
npm ERR!   code: 1,
npm ERR!   killed: false,
npm ERR!   signal: null,
npm ERR!   cmd: '/opt/homebrew/lib/node_modules/argo-cli/node_modules/nodegit/vendor/libssh2/configure --with-libssl-prefix=/opt/homebrew/lib/node_modules/argo-cli/node_modules/nodegit/vendor/openssl/openssl'
npm ERR! }

已执行 brew install opensslbrew install libgcrypt

总是会有这个异常出现,不知道怎么解决

Describe the bug
Module parse failed unexpected token

To Reproduce
Steps to reproduce the behavior:

  1. add component
  2. yarn dev
  3. Module parse failed unexpected token

Expected behavior
none

Screenshots
origin_img_v2_b656b3a7-3fd4-4ad5-bc09-1a38a42b8c6g

Desktop (please complete the following information):

  • OS: [e.g. MacOS]
  • node version [e.g. v14.17.0]

Additional context
none

物料站点navbar自定义时会覆盖原先的登录操作,但是物料站点又需要一些登录信息,希望将登录封装成组件提供使用

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

screenshot 源码里发布物料不支持自动截图了么?那在哪里上传物料预览图呢?

program
.command('sync')
.description(locale.CMD_DES_SYNC)
// TODO rewrite this command
// .option('-s, --screenshot [screenshotPath]', locale.TIP_SYNC_SCREENSHOT)
.option('--from-current-package', locale.TIP_SYNC_FROM_CURRENT_PACKAGE)
.option('--fetch', locale.TIP_SYNC_FETCH)
.action(async ({ screenshot, fromCurrentPackage, fetch }) => {
await sync({ screenshot, fetch, paths: fromCurrentPackage ? process.cwd() : undefined });
process.exit(0);
});

arco init yourProjectName 无法成功建立项目

Describe the bug
如标题

To Reproduce
Steps to reproduce the behavior:
安装npm i arco-cli -g
初始化arco init yourProjectName

Expected behavior
能成功执行

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows10
  • node version v16.13.1

Other Content
虽然提示初始化完成,可以启动,但是执行npm run dev也是报错
image

arco init project ---> select "组件" ---> npm run dev ---> ERROR in ./generated-stories-entry.js Module not found: Error: Can't resolve './stories'

Basic Info

Extra info

node v16.14.2
arco-cli 1.27.0

What is expected?

Program runs without error

Steps to reproduce

arco init project ---> react ---> select "组件" ---> npm run dev ---> ERROR in ./generated-stories-entry.js Module not found: Error: Can't resolve './stories'
ERROR in ./generated-stories-entry.js
Module not found: Error: Can't resolve './stories' in '/Desktop/project/doc'
@ ./generated-stories-entry.js 7:37-123
@ multi ./node_modules/@storybook/core-client/dist/esm/globals/polyfills.js ./node_modules/@storybook/core-client/dist/esm/globals/globals.js (webpack)-hot-middleware/client.js?reload=true&quiet=false&noInfo=undefined ./storybook-init-framework-entry.js ./node_modules/@storybook/react/dist/esm/client/preview/config-generated-config-entry.js ./.storybook/preview.js-generated-config-entry.js ./generated-stories-entry.js

当我运行arco时,就会提示Socket connection timeout

    ___                    ____            _           
   /   |  ______________  / __ \___  _____(_)___ _____ 
  / /| | / ___/ ___/ __ \/ / / / _ \/ ___/ / __ `/ __ \
 / ___ |/ /  / /__/ /_/ / /_/ /  __(__  ) / /_/ / / / /
/_/  |_/_/   \___/\____/_____/\___/____/_/\__, /_/ /_/ 
                                         /____/        
                                         
                                            v1.27.5

Error: Socket connection timeout

node version v20.1.0

style/index.ts 引入css文件,打包后无效

Describe the bug
style/index.ts 引入其他 css 文件 import 'antd/dist/antd.min.css';,没有一起打包,如果使用引入整个文件夹的方式import 'antd/dist'; 则启动会报以下错误:

ModuleNotFoundError: Module not found: Error: Can't resolve 'antd/dist' in '/Users/lin-mt/WebstormProjects/json-schema-editor-antd/src/style'
    at /Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/webpack/lib/Compilation.js:925:10
    at /Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/webpack/lib/NormalModuleFactory.js:401:22
    at /Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/webpack/lib/NormalModuleFactory.js:130:21
    at /Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/webpack/lib/NormalModuleFactory.js:224:22
    at /Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/neo-async/async.js:2830:7
    at /Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/neo-async/async.js:6877:13
    at /Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/webpack/lib/NormalModuleFactory.js:214:25
    at /Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/enhanced-resolve/lib/Resolver.js:213:14
    at /Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/enhanced-resolve/lib/Resolver.js:285:5
    at eval (eval at create (/Users/lin-mt/WebstormProjects/json-schema-editor-antd/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
resolve 'antd/dist' in '/Users/lin-mt/WebstormProjects/json-schema-editor-antd/src/style'
  Parsed request is a module
  using description file: /Users/lin-mt/WebstormProjects/json-schema-editor-antd/package.json (relative path: ./src/style)
    Field 'browser' doesn't contain a valid alias configuration
    resolve as module
      /Users/lin-mt/WebstormProjects/json-schema-editor-antd/src/style/node_modules doesn't exist or is not a directory
      /Users/lin-mt/WebstormProjects/json-schema-editor-antd/src/node_modules doesn't exist or is not a directory
      /Users/lin-mt/WebstormProjects/node_modules doesn't exist or is not a directory
      /Users/lin-mt/node_modules doesn't exist or is not a directory

To Reproduce
Steps to reproduce the behavior:

  1. style/index.ts 引入 import 'antd/dist/antd.min.css';
  2. npm publish
  3. 使用发布后的组件物料
  4. 除了需要引入组件物料的样式文件外,还需要单独引入 import 'antd/dist/antd.min.css';

Expected behavior
打包发布后,使用时只需要引入 import '@物料名称/dist/css/index.css';

Screenshots

Desktop (please complete the following information):

  • OS: MacOS
  • node version v16.13.1

Additional context
Add any other context about the problem here.

工具库工程&文档能力支持

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

arco init 初始化有版本冲突

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. arco init azpro (arcodesign v1.27.3)
  2. 请选择你希望使用的技术栈 Vue
  3. 请选择所要创建项目的类型 Arco Pro 项目
  4. 请选择 Arco Pro 模板 完整版(包含所有页面)
  5. 项目依赖安失败,你可以稍后尝试手动安装项目依赖

Error: Command 「npm install」 executed failed:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR! dev eslint@"^8.7.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^5.16.0 || ^6.8.0 || ^7.2.0" from [email protected]
npm ERR! node_modules/eslint-config-airbnb-base
npm ERR! dev eslint-config-airbnb-base@"^14.2.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/wuhu/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:

arco-init 项目初始化失败!
Error: spawnSync yarn ENOENT

Desktop (please complete the following information):

  • OS: [ MacOS 12.5]
  • node version [v16.18.0]

Additional context
Add any other context about the problem here.

vite react 模版 .gitignore 中缺失dist,package.json缺失build脚本

Basic Info

Extra info

这个不需要提供 Reproduction Link 我就瞎写了一个。

What is expected?

.gitignore 中有dist,package.json中有build脚本

Steps to reproduce

  1. 安装acro-cli最新版
  2. acro init test
    选择 react -> vite -> acroDesignPro -> 简单模版 生成项目文件

Update arco-scripts dependencies

升级 arco-scripts 依赖

  • [email protected] 已经和 ts-loader@~8 存在不兼容的情况,只能将两者的版本写死;
  • less 版本无法平稳升级到 ~4
  • 升级依赖可能需要发布 arco-scripts 的大版本。

创建组件库项目,构建失败

Describe the bug
创建组件库项目,构建失败

To Reproduce
F:\vue3>arco init lib-project

    ___                    ____            _
   /   |  ______________  / __ \___  _____(_)___ _____
  / /| | / ___/ ___/ __ \/ / / / _ \/ ___/ / __ `/ __ \
 / ___ |/ /  / /__/ /_/ / /_/ /  __(__  ) / /_/ / / / /
/_/  |_/_/   \___/\____/_____/\___/____/_/\__, /_/ /_/
                                         /____/

                                            v1.27.4

? 请选择你希望使用的技术栈 Vue
? 请选择所要创建项目的类型 组件库
? 请输入 NPM 包名 common-components
? 请输入物料标题 公共组件
? 请描述你的物料 公共组件
? 请输入 NPM 包版本号 0.1.0
? 请选择物料的关键词(可多选) 数据展示

正在初始化项目于 F:\vue3\lib-project
√ 获取项目模板成功
√ 模板内容拷贝完成
√ 模板内容适配完成
√ 项目依赖安装完成
‼ 项目构建失败
Command executed failed: npm run build
npm WARN config global --global, --local are deprecated. Use --location=global instead.
npm WARN config global --global, --local are deprecated. Use --location=global instead.
"build.lib.formats" will be ignored because "build.rollupOptions.output" is already an array format
"build.lib.formats" will be ignored because "build.rollupOptions.output" is already an array format
npm WARN config global --global, --local are deprecated. Use --location=global instead.
"build.lib.formats" will be ignored because "build.rollupOptions.output" is already an array format
You must supply options.input to rollup
F:\vue3\lib-project\node_modules\rollup\dist\shared\rollup.js:23039
throw new Error('You must supply options.input to rollup');
^

Error: You must supply options.input to rollup
at Graph.generateModuleGraph (F:\vue3\lib-project\node_modules\rollup\dist\shared\rollup.js:23039:19)
at async Graph.build (F:\vue3\lib-project\node_modules\rollup\dist\shared\rollup.js:22982:9)
at async F:\vue3\lib-project\node_modules\rollup\dist\shared\rollup.js:23680:13
at async catchUnfinishedHookActions (F:\vue3\lib-project\node_modules\rollup\dist\shared\rollup.js:23162:20)
at async rollupInternal (F:\vue3\lib-project\node_modules\rollup\dist\shared\rollup.js:23677:5)
at async doBuild (F:\vue3\lib-project\node_modules\vite\dist\node\chunks\dep-689425f3.js:41710:24)
at async build (F:\vue3\lib-project\node_modules\vite\dist\node\chunks\dep-689425f3.js:41552:16)

Desktop (please complete the following information):

  • OS: windows
  • node version v16.16.0

新建项目安装老是提示构建失败

Basic Info

预期结果

提示:项目构建完成

复现步骤

1、cmd中输入:
arco init test2
2、按步骤选择:业务组件-包名字
2、最后安装时候出错。最后一步显示项目构建失败 command erroe:npm run build

额外补充

物料平台

build:component:es ts 编译可以复制一下资源文件吗?

基本信息

现有案例

选择 babel 编译时,gulpTS(tsconfig.compilerOptions) 不复制资源文件,但是 js 文件目录都变了,之后 babel 编译会报找不到文件,例如 svg 文件

预期解决问题

TS_COMPILER='babel' arco-scripts build:component:es

选择 babel 编译时,gulpTS(tsconfig.compilerOptions) 之后先把资源文件复制一下,例如 img 文件等,为接下来 babel 处理提供对应的资源文件

初始化项目后 选择组件库 yarn run dev启动一直loading

Describe the bug
初始化项目后yarn run dev启动一直loading

To Reproduce
Steps to reproduce the behavior:

  1. arco init test-pro 选择Vue 组件库
  2. cd test-pro && yarn
  3. yarn run add:component button
  4. yarn run dev

Expected behavior
正常启动

Screenshots
image
image

"devDependencies": {
    "@arco-design/arco-vue-scripts": "latest",
    "@arco-design/web-vue": "~2",
    "@babel/core": "^7.14.6",
    "@babel/plugin-proposal-class-properties": "^7.14.5",
    "@babel/plugin-syntax-dynamic-import": "^7.8.3",
    "@babel/preset-env": "^7.14.7",
    "@babel/preset-typescript": "^7.14.5",
    "@commitlint/cli": "^11.0.0",
    "@commitlint/config-conventional": "^12.0.1",
    "@storybook/addon-actions": "^6.3.0",
    "@storybook/addon-essentials": "^6.3.0",
    "@storybook/addon-links": "^6.3.0",
    "@storybook/builder-webpack5": "^6.5.9",
    "@storybook/manager-webpack5": "^6.5.9",
    "@storybook/vue3": "^6.3.0",
    "@types/fs-extra": "^9.0.6",
    "@typescript-eslint/eslint-plugin": "^4.18.0",
    "@typescript-eslint/parser": "^4.12.0",
    "@vue/babel-plugin-jsx": "^1.0.6",
    "@vue/test-utils": "^2.0.0-beta.14",
    "babel-loader": "^8.2.2",
    "eslint": "^7.21.0",
    "eslint-config-airbnb-base": "^14.2.1",
    "eslint-config-prettier": "^8.3.0",
    "eslint-import-resolver-typescript": "^2.4.0",
    "eslint-plugin-import": "^2.22.1",
    "eslint-plugin-prettier": "^3.3.1",
    "eslint-plugin-vue": "^7.7.0",
    "fast-glob": "^3.2.7",
    "fs-extra": "^9.1.0",
    "husky": "^4.3.7",
    "less": "^4.1.1",
    "less-loader": "^7.3.0",
    "lint-staged": "^10.5.3",
    "prettier": "^2.2.1",
    "stylelint": "^13.8.0",
    "stylelint-config-prettier": "^8.0.2",
    "stylelint-config-rational-order": "^0.1.2",
    "stylelint-config-standard": "^20.0.0",
    "stylelint-order": "^4.1.0",
    "typescript": "^4.2.4",
    "vue": "^3.2.0",
    "vue-loader": "^16.2.0"
  }

Desktop (please complete the following information):
image

  • OS: [e.g. MacOS]

Additional context
Add any other context about the problem here.

arco-cli 无法初始化项目报错Error: Failed to copy project content

Describe the bug
PS C:\Users***\Desktop\study_vue\hello-arco-pro> arco init hello-arco-pro

    ___                    ____            _
   /   |  ______________  / __ \___  _____(_)___ _____
  / /| | / ___/ ___/ __ \/ / / / _ \/ ___/ / __ `/ __ \
 / ___ |/ /  / /__/ /_/ / /_/ /  __(__  ) / /_/ / / / /
/_/  |_/_/   \___/\____/_____/\___/____/_/\__, /_/ /_/
                                         /____/

                                            v1.26.1

? 请选择你希望使用的技术栈 Vue
? 请选择所要创建项目的类型 Arco Pro 项目
? 请选择 Arco Pro 模板 完整版(包含所有页面)

正在初始化项目于 C:\Users***\Desktop\study_vue\hello-arco-pro\hello-arco-pro
√ 获取项目模板成功
× 模板内容拷贝失败
Error: Failed to copy project content.
npm WARN config global --global, --local are deprecated. Use --location=global instead.

at module.exports (C:\Users\***\.arco_template_cache\1655866434222\node_modules\arco-design-pro-vue\.arco-cli\init.js:25:13)
at C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\arco-cli-create-project\lib\index.js:129:23
at Generator.next (<anonymous>)
at fulfilled (C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\arco-cli-create-project\lib\index.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

Error: EBUSY: resource busy or locked, rmdir 'C:\Users***.arco_template_cache\1655866434222\node_modules\arco-design-pro-vue'
node:fs:1180
return handleErrorFromBinding(ctx);
^

Error: EBUSY: resource busy or locked, rmdir 'C:\Users*.arco_template_cache\1655866434222\node_modules\arco-design-pro-vue'
at Object.rmdirSync (node:fs:1180:10)
at rmdirSync (C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\fs-extra\lib\remove\rimraf.js:264:13)
at rimrafSync (C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\fs-extra\lib\remove\rimraf.js:243:7)
at C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\fs-extra\lib\remove\rimraf.js:279:39
at Array.forEach ()
at rmkidsSync (C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\fs-extra\lib\remove\rimraf.js:279:26)
at rmdirSync (C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\fs-extra\lib\remove\rimraf.js:269:7)
at rimrafSync (C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\fs-extra\lib\remove\rimraf.js:243:7)
at C:\Program Files\node-v16.15.1-win-x64\node_modules\node_global\node_modules\arco-cli\node_modules\fs-extra\lib\remove\rimraf.js:279:39
at Array.forEach () {
errno: -4082,
syscall: 'rmdir',
code: 'EBUSY',
path: 'C:\Users\
*\.arco_template_cache\1655866434222\node_modules\arco-design-pro-vue'
}

To Reproduce
Steps to reproduce the behavior:

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: win10
  • node version v16.15.1

Additional context
Add any other context about the problem here.

初始化项目时,无法安装mozjpeg

Describe the bug
A clear and concise description of what the bug is.
image

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error
npm ERR! code 1
npm ERR! path /Users/luojunjie/company/testing_platform/platform-arco/node_modules/mozjpeg
npm ERR! command failed
npm ERR! command sh -c node lib/install.js
npm ERR! compiling from source
npm ERR! connect ECONNREFUSED 0.0.0.0:443
npm ERR! mozjpeg pre-build test failed
npm ERR! Error: Command failed: /bin/sh -c autoreconf -fiv
npm ERR! autoreconf: export WARNINGS=
npm ERR! autoreconf: Entering directory '.'
npm ERR! autoreconf: configure.ac: not using Gettext
npm ERR! autoreconf: running: aclocal --force
npm ERR! autoreconf: configure.ac: tracing
npm ERR! autoreconf: configure.ac: not using Libtool
npm ERR! autoreconf: configure.ac: not using Intltool
npm ERR! autoreconf: configure.ac: not using Gtkdoc
npm ERR! autoreconf: running: /usr/local/Cellar/autoconf/2.71/bin/autoconf --force
npm ERR! configure.ac:84: warning: The macro `AC_TRY_COMPILE' is obsolete.
npm ERR! configure.ac:84: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
npm ERR! configure.ac:84: the top level
npm ERR! configure.ac:115: warning: The macro `AC_HEADER_STDC' is obsolete.
npm ERR! configure.ac:115: You should run autoupdate.
npm ERR! ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
npm ERR! configure.ac:115: the top level
npm ERR! configure.ac:128: warning: The macro `AC_TRY_RUN' is obsolete.
npm ERR! configure.ac:128: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
npm ERR! configure.ac:128: the top level
npm ERR! configure.ac:164: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:164: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:164: the top level
npm ERR! configure.ac:167: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:167: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:167: the top level
npm ERR! configure.ac:210: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:210: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:210: the top level
npm ERR! configure.ac:291: warning: The macro `AC_TRY_COMPILE' is obsolete.
npm ERR! configure.ac:291: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
npm ERR! configure.ac:291: the top level
npm ERR! configure.ac:289: warning: The macro `AC_TRY_COMPILE' is obsolete.
npm ERR! configure.ac:289: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
npm ERR! configure.ac:289: the top level
npm ERR! configure.ac:287: warning: The macro `AC_TRY_COMPILE' is obsolete.
npm ERR! configure.ac:287: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
npm ERR! configure.ac:287: the top level
npm ERR! configure.ac:285: warning: The macro `AC_TRY_COMPILE' is obsolete.
npm ERR! configure.ac:285: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
npm ERR! configure.ac:285: the top level
npm ERR! configure.ac:299: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:299: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:299: the top level
npm ERR! configure.ac:318: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:318: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:318: the top level
npm ERR! configure.ac:341: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:341: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:341: the top level
npm ERR! configure.ac:353: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:353: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:353: the top level
npm ERR! configure.ac:388: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:388: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:388: the top level
npm ERR! configure.ac:433: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:433: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:433: the top level
npm ERR! configure.ac:449: warning: The macro `AC_HELP_STRING' is obsolete.
npm ERR! configure.ac:449: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
npm ERR! configure.ac:449: the top level
npm ERR! configure.ac:463: warning: The macro `AC_FD_CC' is obsolete.
npm ERR! configure.ac:463: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:399: AC_FD_CC is expanded from...
npm ERR! acinclude.m4:4: AC_PROG_NASM is expanded from...
npm ERR! configure.ac:463: the top level
npm ERR! configure.ac:468: warning: The macro `AC_FD_CC' is obsolete.
npm ERR! configure.ac:468: You should run autoupdate.
npm ERR! ./lib/autoconf/general.m4:399: AC_FD_CC is expanded from...
npm ERR! acinclude.m4:4: AC_PROG_NASM is expanded from...
npm ERR! configure.ac:468: the top level
npm ERR! configure.ac:23: error: possibly undefined macro: AC_PROG_LIBTOOL
npm ERR!       If this token and others are legitimate, please use m4_pattern_allow.
npm ERR!       See the Autoconf documentation.
npm ERR! autoreconf: error: /usr/local/Cellar/autoconf/2.71/bin/autoconf failed with exit status: 1
npm ERR!
npm ERR!
npm ERR!     at /Users/luojunjie/company/testing_platform/platform-arco/node_modules/bin-build/node_modules/execa/index.js:231:11
npm ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm ERR!     at async Promise.all (index 0)

npm ERR! A complete log of this run can be found in: /Users/luojunjie/.npm/_logs/2023-07-31T11_47_47_733Z-debug-0.log

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. MacOS]
  • node version [e.g. v16.13.1]

Additional context
Add any other context about the problem here.

clone 之后,本地无法构建成功 /bin/sh: arco-scripts: command not found

Basic Info

  • 依赖包名 及 版本: @arco-design/arco-cli 1.21.1
  • 系统版本: mac os big sur 11.5.2
  • 浏览器版本: No
  • 复现地址: https://github.com

额外补充

$ tsc && cp -rf src/scripts/changelog/template/ lib/scripts/changelog/template
Done in 14.02s.
lerna info run Ran npm script 'build' in '@arco-design/arco-cli-block' in 8.8s:
yarn run v1.22.10
$ tsc
Done in 8.33s.
lerna ERR! yarn run build exited 127 in '@arco-design/arco-components'
lerna ERR! yarn run build stdout:
yarn run v1.22.10
$ arco-scripts build:component:es && arco-scripts build:component:css
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lerna ERR! yarn run build stderr:
/bin/sh: arco-scripts: command not found
error Command failed with exit code 127.

lerna ERR! yarn run build exited 127 in '@arco-design/arco-components'
lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! @arco-design/arco-cli@ preRelease: `lerna run clean && lerna run build`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the @arco-design/arco-cli@ preRelease script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/lambert/.npm/_logs/2021-10-28T14_13_21_057Z-debug.log

预期结果

能够本地构建成功,并在本地debug

复现步骤

node -v: v12.22.1
yarn -v: 1.22.10

git clone
npm run init
npm run preRelease

创建团队站点,webpack打包报错

在使用 arco-cli 创建组件库并尝试创建团队站点时,遇到了 webpack 打包错误。

以下是问题的详细描述:

通过 arco init projectName 新建项目,项目类型是组件库。
项目建立好后根据 README.md 文档,新增一个 Button 组件并运行 dev
打开后 storybook 提示没找到配置的stories文件,检查下,去修改了 .storybook/main.js

stories: [path.resolve(isMonorepo ? 'packages/*' : './', 'stories/*.@(js|jsx|ts|tsx)')],
//  修改成
stories: ['../stories/*.@(js|jsx|ts|tsx)'],

storybook 可以正常预览。

后面按照官网文档搭建团队站点

cd projectName
arco init arco-team-site --pure

初始化完成后修改配置是“可用于 Arco 物料库模板的配置”,然后运行 yarn dev 发现无法打包,具体错误:

ERROR in ./.temp/submodule/component.js 8:0-68
Module not found: Error: Can't resolve '......componentsButtondemoindex.js' in 'D:\projects\test-design\arco-team-site\.temp\submodule'
 @ ./.temp/index.zh-CN.js 3:0-64 18:13-32

ERROR in ./.temp/submodule/component.js 9:0-62
Module not found: Error: Can't resolve '......componentsButtonREADME.md' in 'D:\projects\test-design\arco-team-site\.temp\submodule'
 @ ./.temp/index.zh-CN.js 3:0-64 18:13-32

ERROR in D:projectstest-designcomponentsButtonstyleindex.less
Module build failed: UnhandledSchemeError: Reading from "D:projectstest-designcomponentsButtonstyleindex.less" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.

再去检查项目中具体文件

// arco-team-site/.temp/submodule/component.js

/* Do NOT edit this file manually, it's generated by arco-material-doc-site. */
/* eslint-disable */

// Import demos and document of Button
import * as _Button from '..\..\..\components\Button\demo\index.js';
import _ButtonDoc from '..\..\..\components\Button\README.md';
import 'D:\projects\test-design\components\Button\style\index.less';


// Export Modules
export const Button = { ..._Button, _SITE_DOC: _ButtonDoc };

像是webpack配置的错误,模块路径不对了,请问是什么问题导致的呢,该怎么解决。

环境

  • OS: windows11
  • arco-cli: v1.27.5
  • node version v16.20.2

Providing `arco login` on a remote machine

Basic Info

https://github.com/arco-design/arco-cli/blob/main/packages/arco-cli-auth/src/login.ts#L66

现有案例

N/A

预期解决问题

When arco login or arco env --switch on a remote machine, the post-login redirection to http://localhost:3333/login_result is impossible to succeed since arco login is listening on a remote devbox instead of localhost.

额外补充

Suggested solution: Grab all IP addresses of the os and prompt user with selection or manual input

arco init [项目] 卡着不动

Describe the bug
arco init [项目] 卡着不动

To Reproduce
Steps to reproduce the behavior:

  1. npm install arco-cli -g
  2. arco init hello-arco-pro

image
4. 一直卡在这里不会动

Screenshots
image
一直卡着
Desktop (please complete the following information):

  • OS: [e.g. MacOS]
  • node version [e.g. v18.12.0]

创建vue 组件库物料项目安装依赖后运行报错

Describe the bug
新建vue 组件库物料项目安装后报如下错误
DeprecationWarning: Default PostCSS plugins are deprecated. When switching to '@storybook/addon-postcss',
you will need to add your own plugins, such as 'postcss-flexbugs-fixes' and 'autoprefixer'.

See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-default-postcss-plugins for details.
(Use node --trace-deprecation ... to show where the warning was created)
0% compilingERR! TypeError: Cannot read properties of undefined (reading 'get')

To Reproduce
Steps to reproduce the behavior:

  1. arco init demo
  2. 选择vue
  3. 选择组件库, 输入npm包名,输入物料标题,输入描述,输入npm版本号0.1.0,选择关键词
  4. 等待下载依赖
  5. yarn install 后yarn dev报错

Expected behavior
image

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MacOS10.15.7
  • node version [e.g. v16.15.0]
  • arco-cli [v1.27.1]
    Additional context
    Add any other context about the problem here.

初始化失败

按照文档执行:

npm install --save-dev @arco-design/web-vue
npm i -g arco-cli

arco init hello

输出:

    ___                    ____            _
   /   |  ______________  / __ \___  _____(_)___ _____
  / /| | / ___/ ___/ __ \/ / / / _ \/ ___/ / __ `/ __ \
 / ___ |/ /  / /__/ /_/ / /_/ /  __(__  ) / /_/ / / / /
/_/  |_/_/   \___/\____/_____/\___/____/_/\__, /_/ /_/
                                         /____/

                                            v1.27.3

(node:6969) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'question' of undefined
at /usr/local/lib/node_modules/arco-cli/node_modules/arco-cli-dev-utils/lib/getAnswerFromUser.js:145:57
at Generator.next ()
at fulfilled (/usr/local/lib/node_modules/arco-cli/node_modules/arco-cli-dev-utils/lib/getAnswerFromUser.js:5:58)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use node --trace-warnings ... to show where the warning was created)
(node:6969) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:6969) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

.arco-cli.json 缺少文档

Basic Info

  • 依赖包名 及 版本: 同上
  • 系统版本: mac os
  • 浏览器版本: No
  • 复现地址: https://www.github.com

预期结果

能顺利运行使用系统本身配置的镜像源

复现步骤

正在初始化项目于xxxx
✔ 获取项目模板成功
✔ 模板内容拷贝完成
✔ 模板内容适配完成
✖ 项目依赖安失败,你可以稍后尝试手动安装项目依赖
Command Error: npm install --registry https://registry.npmjs.org/ --loglevel error
✖ 项目构建失败
Command Error: npm run build

国内安装缓慢,且过了很长时间才有失败提示。
建议这种时候,给出一个及时性提示:

当前安装命令为:npm install --registry https://registry.npmjs.org/ --loglevel error
debug 才知道原来可以通过在home目录配置:.arco-cli.json 来更换镜像源

arco init hello-arco-pro 选GitHub授权登录后出现“请提交你的 Git 修改后继续操作”

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. MacOS]
  • node version [e.g. v16.13.1]

Additional context
Add any other context about the problem here.

arco-desigin-pro-vue项目的node_modules存在与之一样的文件内容

Describe the bug
使用arco init <programname> 创建arco-pro-vue项目,

To Reproduce
Steps to reproduce the behavior:

  1. 创建:arco init <programname>
  2. 报错:commander erro: npm install
  3. 使用:npm install --legacy-peer-deps
  4. 结果: node_modules文件夹出现arco-design-pro-vite文件夹且根目录下的package.jsondependencies:"arco-design-pro-vue": "^2.6.0"

Expected behavior
创建完成的node_modules文件夹中不出现arco-design-pro-vite文件夹

Desktop (please complete the following information):

  • OS: Win10(Win32)
  • node version: v16.18.1
  • npm version: v8.16.0

Additional context

  • npm install 会报错:ERESOLVE unable to resolve dependency tree;Could not resolve dependency:peer vite@"^4.0.0" from @vitejs/[email protected];node_modules/@vitejs/plugin-vue;dev @vitejs/plugin-vue@"^4.0.0" from the root project

windows 11 node 16.17.0 arco-cli init 报错,Error: spawn mkdir ENOENT

Describe the bug
windows 11;
node 16.17.0;
arco-cli init 报错,Error: spawn mkdir ENOENT

To Reproduce
Steps to reproduce the behavior:

  1. 在 windows terminal 中执行 arco init test

Expected behavior
成功拉去模板,并初始化项目

Screenshots
image

Desktop (please complete the following information):

  • OS: [windows 11]
  • node version [v16.17.0]

请提交你的 Git 修改后继续操作

Describe the bug
使用arco-cli初始化项目出现 请提交你的 Git 修改后继续操作 提示,然后停止,不知道下一步如何操作。

To Reproduce
Steps to reproduce the behavior:

  1. yarn global add arco-cli
  2. 选择了公网版本
  3. arco init 项目名称
  4. 提示 请提交你的 Git 修改后继续操作

Expected behavior
成功初始化项目

Screenshots
WeChatde746419b69ab690cb1d9c944a70dfb1

Desktop (please complete the following information):

  • OS: [e.g. MacOS]
  • node version [e.g. v14.19.1]
  • yarn version [e.g v1.22.10]

Additional context
初始化项目是在一个没有任何.git文件的文件夹下初始化的

have the plan to support vite?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.