pysunday/sdenv

有问题提issue或者群里问,群里问的问完如果是bug记得同步到issues中,谢谢!

Opened this issue · 2 comments

我做了什么:

期望行为:

重现步骤:

环境:

其它

执行npm i -g sdenv时候 报错:
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'sdenv@0.2.2',
npm WARN EBADENGINE required: { node: '>=20.10.0' },
npm WARN EBADENGINE current: { node: 'v18.19.0', npm: '10.5.2' }
npm WARN EBADENGINE }
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup 'D:\soft\node\node_global\node_modules\sdenv\node_modules',
npm WARN cleanup [Error: EBUSY: resource busy or locked, rmdir 'D:\soft\node\node_global\node_modules\sdenv\node_modules\canvas'] {
npm WARN cleanup errno: -4082,
npm WARN cleanup code: 'EBUSY',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'D:\soft\node\node_global\node_modules\sdenv\node_modules\canvas'
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'D:\soft\node\node_global\node_modules\sdenv',
npm WARN cleanup [Error: EBUSY: resource busy or locked, rmdir 'D:\soft\node\node_global\node_modules\sdenv\node_modules\canvas'] {
npm WARN cleanup errno: -4082,
npm WARN cleanup code: 'EBUSY',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'D:\soft\node\node_global\node_modules\sdenv\node_modules\canvas'
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'D:\soft\node\node_global\node_modules\sdenv',
npm WARN cleanup [Error: EBUSY: resource busy or locked, rmdir 'D:\soft\node\node_global\node_modules\sdenv\node_modules\canvas'] {
npm WARN cleanup errno: -4082,
npm WARN cleanup code: 'EBUSY',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'D:\soft\node\node_global\node_modules\sdenv\node_modules\canvas'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path D:\soft\node\node_global\node_modules\sdenv
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@10.1.0
npm ERR! gyp info using node@18.19.0 | win32 | x64
npm ERR! gyp info find Python using Python version 3.11.5 found at "D:\soft\conda\python.exe"
npm ERR! gyp http GET https://nodejs.org/download/release/v18.19.0/node-v18.19.0-headers.tar.gz
npm ERR! gyp WARN install got an error, rolling back install
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack FetchError: request to https://nodejs.org/download/release/v18.19.0/node-v18.19.0-headers.tar.gz failed, reason: read ECONNRESET
npm ERR! gyp ERR! stack at ClientRequest. (D:\soft\node\node_global\node_modules\npm\node_modules\minipass-fetch\lib\index.js:130:14)
npm ERR! gyp ERR! stack at ClientRequest.emit (node:events:517:28)
npm ERR! gyp ERR! stack at _destroy (node:_http_client:882:13)
npm ERR! gyp ERR! stack at onSocketNT (node:_http_client:902:5)
npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
npm ERR! gyp ERR! System Windows_NT 10.0.22631
npm ERR! gyp ERR! command "D:\soft\node\node.exe" "D:\soft\node\node_global\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd D:\soft\node\node_global\node_modules\sdenv
npm ERR! gyp ERR! node -v v18.19.0
npm ERR! gyp ERR! node-gyp -v v10.1.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: D:\soft\node\node_cache_logs\2024-04-25T11_10_29_900Z-debug-0.log

执行npm i -g sdenv时候 报错:
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'sdenv@0.2.2',
npm WARN EBADENGINE required: { node: '>=20.10.0' },
npm WARN EBADENGINE current: { node: 'v18.19.0', npm: '10.5.2' }
npm WARN EBADENGINE }
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup 'D:\soft\node\node_global\node_modules\sdenv\node_modules',
npm WARN cleanup [Error: EBUSY: resource busy or locked, rmdir 'D:\soft\node\node_global\node_modules\sdenv\node_modules\canvas'] {
npm WARN cleanup errno: -4082,
npm WARN cleanup code: 'EBUSY',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'D:\soft\node\node_global\node_modules\sdenv\node_modules\canvas'
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'D:\soft\node\node_global\node_modules\sdenv',
npm WARN cleanup [Error: EBUSY: resource busy or locked, rmdir 'D:\soft\node\node_global\node_modules\sdenv\node_modules\canvas'] {
npm WARN cleanup errno: -4082,
npm WARN cleanup code: 'EBUSY',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'D:\soft\node\node_global\node_modules\sdenv\node_modules\canvas'
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup 'D:\soft\node\node_global\node_modules\sdenv',
npm WARN cleanup [Error: EBUSY: resource busy or locked, rmdir 'D:\soft\node\node_global\node_modules\sdenv\node_modules\canvas'] {
npm WARN cleanup errno: -4082,
npm WARN cleanup code: 'EBUSY',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'D:\soft\node\node_global\node_modules\sdenv\node_modules\canvas'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path D:\soft\node\node_global\node_modules\sdenv
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@10.1.0
npm ERR! gyp info using node@18.19.0 | win32 | x64
npm ERR! gyp info find Python using Python version 3.11.5 found at "D:\soft\conda\python.exe"
npm ERR! gyp http GET https://nodejs.org/download/release/v18.19.0/node-v18.19.0-headers.tar.gz
npm ERR! gyp WARN install got an error, rolling back install
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack FetchError: request to https://nodejs.org/download/release/v18.19.0/node-v18.19.0-headers.tar.gz failed, reason: read ECONNRESET
npm ERR! gyp ERR! stack at ClientRequest. (D:\soft\node\node_global\node_modules\npm\node_modules\minipass-fetch\lib\index.js:130:14)
npm ERR! gyp ERR! stack at ClientRequest.emit (node:events:517:28)
npm ERR! gyp ERR! stack at _destroy (node:_http_client:882:13)
npm ERR! gyp ERR! stack at onSocketNT (node:_http_client:902:5)
npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
npm ERR! gyp ERR! System Windows_NT 10.0.22631
npm ERR! gyp ERR! command "D:\soft\node\node.exe" "D:\soft\node\node_global\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd D:\soft\node\node_global\node_modules\sdenv
npm ERR! gyp ERR! node -v v18.19.0
npm ERR! gyp ERR! node-gyp -v v10.1.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: D:\soft\node\node_cache_logs\2024-04-25T11_10_29_900Z-debug-0.log

mmexport1714496227314.jpg

看报错和网名应该是你,提交问题开新issue!