-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vite init fail. #95
Comments
same |
don't use chinese folder path!!!!!!!!!!!!!!!!! |
PS C:\Users\Fatemin\OneDrive\JS\react> arco init hello-arco-pro
? 路径已经存在,确认要覆盖它吗? C:\Users\Fatemin\OneDrive\JS\react\hello-arco-pro Yes 正在初始化项目于 C:\Users\Fatemin\OneDrive\JS\react\hello-arco-pro Error: EBUSY: resource busy or locked, rmdir 'C:\Users\Fatemin.arco_template_cache\1724633411056\node_modules\arco-design-pro' Node.js v18.20.4 |
Me too, but Now I succeed. using node 16.13.2 and pnpm |
I use window11, But I can complete the initialization normally in wsl2. |
Describe the bug
vite init robot-front
arco init robot-front
? 请选择你希望使用的技术栈 React
? 请选择所要创建项目的类型 Arco Pro 项目
? 请选择你想要使用的开发框架 Vite (https://vitejs.dev/)
? 请选择 Arco Pro 模板 简单版(只包含一个基础页面)
正在初始化项目于 E:\works\robots\robot-front
✔ 获取项目模板成功
✖ 模板内容拷贝失败
Error: spawnSync npm.cmd EINVAL
at Object.spawnSync (node:internal/child_process:1124:20)
at spawnSync (node:child_process:876:24)
at module.exports (C:\Users\冯征.arco_template_cache\1723451754126\node_modules\arco-design-pro.arco-cli\init.js:18:31)
at D:\dev\pnpm\global\5.pnpm\[email protected]\node_modules\arco-cli-create-project\lib\index.js:129:23
at Generator.next ()
at fulfilled (D:\dev\pnpm\global\5.pnpm\[email protected]\node_modules\arco-cli-create-project\lib\index.js:5:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
errno: -4071,
code: 'EINVAL',
syscall: 'spawnSync npm.cmd',
path: 'npm.cmd',
spawnargs: [
'run',
'gen:vite',
'--',
'--projectPath=E:\works\robots\robot-front',
'--simple'
]
}
Error: EBUSY: resource busy or locked, rmdir 'C:\Users\冯征.arco_template_cache\1723451754126\node_modules\arco-design-pro'
node:fs:1215
binding.rmdir(pathModule.toNamespacedPath(path));
^
Error: EBUSY: resource busy or locked, rmdir 'C:\Users\冯征.arco_template_cache\1723451754126\node_modules\arco-design-pro'
at Object.rmdirSync (node:fs:1215:11)
at rmdirSync (D:\dev\pnpm\global\5.pnpm\[email protected]\node_modules\fs-extra\lib\remove\rimraf.js:264:13)
at rimrafSync (D:\dev\pnpm\global\5.pnpm\[email protected]\node_modules\fs-extra\lib\remove\rimraf.js:243:7)
at D:\dev\pnpm\global\5.pnpm\[email protected]\node_modules\fs-extra\lib\remove\rimraf.js:279:39
at Array.forEach ()
at rmkidsSync (D:\dev\pnpm\global\5.pnpm\[email protected]\node_modules\fs-extra\lib\remove\rimraf.js:279:26)
at rmdirSync (D:\dev\pnpm\global\5.pnpm\[email protected]\node_modules\fs-extra\lib\remove\rimraf.js:269:7)
at rimrafSync (D:\dev\pnpm\global\5.pnpm\[email protected]\node_modules\fs-extra\lib\remove\rimraf.js:243:7)
at D:\dev\pnpm\global\5.pnpm\[email protected]\node_modules\fs-extra\lib\remove\rimraf.js:279:39
at Array.forEach () {
errno: -4082,
code: 'EBUSY',
syscall: 'rmdir',
path: 'C:\Users\冯征\.arco_template_cache\1723451754126\node_modules\arco-design-pro'
}
Node.js v20.16.0
My operating system is win11, and my username contains Chinese characters.
The above error may be caused by the path where the temporary file was created during the initialization of the arco project contains Chinese characters.
It is recommended that arco cli add an option to configure the historical file storage path for project initialization, or just place temporary files in the current directory.
The text was updated successfully, but these errors were encountered: