Skip to content

python3.10, node24, win11 64位环境 开发环境搭建 问题。 #959

@WenLiang619

Description

@WenLiang619
C:\Users\86137\Desktop\EasySpider-master\ElectronJS>npm install
npm warn cleanup Failed to remove some directories [
npm warn cleanup   [
npm warn cleanup     '\\\\?\\C:\\Users\\86137\\Desktop\\EasySpider-master\\ElectronJS\\node_modules',
npm warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\86137\Desktop\EasySpider-master\ElectronJS\node_modules\@electron-forge\cli\node_modules\@electron-forge\core\test\fixture\yarn-workspace\packages\with-node-modules\node_modules'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\Users\\86137\\Desktop\\EasySpider-master\\ElectronJS\\node_modules\\@electron-forge\\cli\\node_modules\\@electron-forge\\core\\test\\fixture\\yarn-workspace\\packages\\with-node-modules\\node_modules'
npm warn cleanup     }
npm warn cleanup   ],
npm warn cleanup   [
npm warn cleanup     '\\\\?\\C:\\Users\\86137\\Desktop\\EasySpider-master\\ElectronJS\\node_modules\\@electron-forge',
npm warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\86137\Desktop\EasySpider-master\ElectronJS\node_modules\@electron-forge\cli\node_modules\@electron-forge\core\test\fixture\yarn-workspace\packages\with-node-modules'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\Users\\86137\\Desktop\\EasySpider-master\\ElectronJS\\node_modules\\@electron-forge\\cli\\node_modules\\@electron-forge\\core\\test\\fixture\\yarn-workspace\\packages\\with-node-modules'
npm warn cleanup     }
npm warn cleanup   ]
npm warn cleanup ]
npm error code 1
npm error path C:\Users\86137\Desktop\EasySpider-master\ElectronJS\node_modules\node-window-manager
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c npm run rebuild
npm error > node-window-manager@2.2.4 rebuild
npm error > node-gyp rebuild
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@9.4.0
npm error gyp info using node@24.12.0 | win32 | x64
npm error (node:21216) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
npm error (Use `node --trace-deprecation ...` to show where the warning was created)
npm error (node:21216) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
npm error gyp info find Python using Python version 3.13.9 found at "C:\Users\86137\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\python.exe"
npm error gyp info find VS using VS2019 (16.11.33328.57) found at:
npm error gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
npm error gyp info find VS run with --verbose for detailed information
npm error gyp info spawn C:\Users\86137\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\python.exe
npm error gyp info spawn args [
npm error gyp info spawn args   'C:\\Users\\86137\\Desktop\\EasySpider-master\\ElectronJS\\node_modules\\node-gyp\\gyp\\gyp_main.py',
npm error gyp info spawn args   'binding.gyp',
npm error gyp info spawn args   '-f',
npm error gyp info spawn args   'msvs',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   'C:\\Users\\86137\\Desktop\\EasySpider-master\\ElectronJS\\node_modules\\node-window-manager\\build\\config.gypi',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   'C:\\Users\\86137\\Desktop\\EasySpider-master\\ElectronJS\\node_modules\\node-gyp\\addon.gypi',
npm error gyp info spawn args   '-I',
npm error gyp info spawn args   'C:\\Users\\86137\\AppData\\Local\\node-gyp\\Cache\\24.12.0\\include\\node\\common.gypi',
npm error gyp info spawn args   '-Dlibrary=shared_library',
npm error gyp info spawn args   '-Dvisibility=default',
npm error gyp info spawn args   '-Dnode_root_dir=C:\\Users\\86137\\AppData\\Local\\node-gyp\\Cache\\24.12.0',
npm error gyp info spawn args   '-Dnode_gyp_dir=C:\\Users\\86137\\Desktop\\EasySpider-master\\ElectronJS\\node_modules\\node-gyp',
npm error gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\86137\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\24.12.0\\\\<(target_arch)\\\\node.lib',
npm error gyp info spawn args   '-Dmodule_root_dir=C:\\Users\\86137\\Desktop\\EasySpider-master\\ElectronJS\\node_modules\\node-window-manager',
npm error gyp info spawn args   '-Dnode_engine=v8',
npm error gyp info spawn args   '--depth=.',
npm error gyp info spawn args   '--no-parallel',
npm error gyp info spawn args   '--generator-output',
npm error gyp info spawn args   'C:\\Users\\86137\\Desktop\\EasySpider-master\\ElectronJS\\node_modules\\node-window-manager\\build',
npm error gyp info spawn args   '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error Traceback (most recent call last):
npm error   File "C:\Users\86137\Desktop\EasySpider-master\ElectronJS\node_modules\node-gyp\gyp\gyp_main.py", line 42, in <module>
npm error     import gyp  # noqa: E402
npm error     ^^^^^^^^^^
npm error   File "C:\Users\86137\Desktop\EasySpider-master\ElectronJS\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 9, in <module>
npm error     import gyp.input
npm error   File "C:\Users\86137\Desktop\EasySpider-master\ElectronJS\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 19, in <module>
npm error     from distutils.version import StrictVersion
npm error ModuleNotFoundError: No module named 'distutils'
npm error gyp ERR! configure error
npm error gyp ERR! stack Error: `gyp` failed with exit code: 1
npm error gyp ERR! stack     at ChildProcess.onCpExit (C:\Users\86137\Desktop\EasySpider-master\ElectronJS\node_modules\node-gyp\lib\configure.js:325:16)
npm error gyp ERR! stack     at ChildProcess.emit (node:events:508:28)
npm error gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm error gyp ERR! System Windows_NT 10.0.26200
npm error gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\86137\\Desktop\\EasySpider-master\\ElectronJS\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm error gyp ERR! cwd C:\Users\86137\Desktop\EasySpider-master\ElectronJS\node_modules\node-window-manager
npm error gyp ERR! node -v v24.12.0
npm error gyp ERR! node-gyp -v v9.4.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: C:\Users\86137\AppData\Local\npm-cache\_logs\2025-12-14T10_51_07_158Z-debug-0.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions