Skip to content

npm install 失败 #1

Description

@kimdiego2098

2894 warn cleanup Failed to remove some directories [
2894 warn cleanup [
2894 warn cleanup 'C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules',
2894 warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\babel-polyfill\node_modules'] {
2894 warn cleanup errno: -4048,
2894 warn cleanup code: 'EPERM',
2894 warn cleanup syscall: 'rmdir',
2894 warn cleanup path: 'C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\babel-polyfill\node_modules'
2894 warn cleanup }
2894 warn cleanup ]
2894 warn cleanup ]
2895 timing reify:rollback:createSparse Completed in 5065ms
2896 timing reify:rollback:retireShallow Completed in 0ms
2897 timing command:install Completed in 35971ms
2898 verbose stack Error: command failed
2898 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\promise-spawn\lib\index.js:53:27)
2898 verbose stack at ChildProcess.emit (node:events:513:28)
2898 verbose stack at maybeClose (node:internal/child_process:1091:16)
2898 verbose stack at ChildProcess._handle.onexit (node:internal/child_process:302:5)
2899 verbose pkgid node-sass@4.12.0
2900 verbose cwd C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master
2901 verbose Windows_NT 10.0.19045
2902 verbose node v18.14.0
2903 verbose npm v9.3.1
2904 error code 1
2905 error path C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\node-sass
2906 error command failed
2907 error command C:\Windows\system32\cmd.exe /d /s /c node scripts/build.js
2908 error Building: C:\Program Files\nodejs\node.exe C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
2909 error gyp info it worked if it ends with ok
2909 error gyp verb cli [
2909 error gyp verb cli 'C:\Program Files\nodejs\node.exe',
2909 error gyp verb cli 'C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\node-gyp\bin\node-gyp.js',
2909 error gyp verb cli 'rebuild',
2909 error gyp verb cli '--verbose',
2909 error gyp verb cli '--libsass_ext=',
2909 error gyp verb cli '--libsass_cflags=',
2909 error gyp verb cli '--libsass_ldflags=',
2909 error gyp verb cli '--libsass_library='
2909 error gyp verb cli ]
2909 error gyp info using node-gyp@3.8.0
2909 error gyp info using node@18.14.0 | win32 | x64
2909 error gyp verb command rebuild []
2909 error gyp verb command clean []
2909 error gyp verb clean removing "build" directory
2909 error gyp verb command configure []
2909 error gyp verb check python checking for Python executable "python2" in the PATH
2909 error gyp verb which failed Error: not found: python2
2909 error gyp verb which failed at getNotFoundError (C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\which\which.js:13:12)
2909 error gyp verb which failed at F (C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\which\which.js:68:19)
2909 error gyp verb which failed at E (C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\which\which.js:80:29)
2909 error gyp verb which failed at C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\which\which.js:89:16
2909 error gyp verb which failed at C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\isexe\index.js:42:5
2909 error gyp verb which failed at C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\isexe\windows.js:36:5
2909 error gyp verb which failed at FSReqCallback.oncomplete (node:fs:207:21)
2909 error gyp verb which failed python2 Error: not found: python2
2909 error gyp verb which failed at getNotFoundError (C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\which\which.js:13:12)
2909 error gyp verb which failed at F (C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\which\which.js:68:19)
2909 error gyp verb which failed at E (C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\which\which.js:80:29)
2909 error gyp verb which failed at C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\which\which.js:89:16
2909 error gyp verb which failed at C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\isexe\index.js:42:5
2909 error gyp verb which failed at C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\isexe\windows.js:36:5
2909 error gyp verb which failed at FSReqCallback.oncomplete (node:fs:207:21) {
2909 error gyp verb which failed code: 'ENOENT'
2909 error gyp verb which failed }
2909 error gyp verb check python checking for Python executable "python" in the PATH
2909 error gyp verb which succeeded python C:\Python311\python.EXE
2909 error gyp ERR! configure error
2909 error gyp ERR! stack Error: Command failed: C:\Python311\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
2909 error gyp ERR! stack File "", line 1
2909 error gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
2909 error gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2909 error gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
2909 error gyp ERR! stack
2909 error gyp ERR! stack at ChildProcess.exithandler (node:child_process:419:12)
2909 error gyp ERR! stack at ChildProcess.emit (node:events:513:28)
2909 error gyp ERR! stack at maybeClose (node:internal/child_process:1091:16)
2909 error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:302:5)
2909 error gyp ERR! System Windows_NT 10.0.19045
2909 error gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
2909 error gyp ERR! cwd C:\Users\Diego\Desktop\topologyEditor-master\topologyEditor-master\node_modules\node-sass
2909 error gyp ERR! node -v v18.14.0
2909 error gyp ERR! node-gyp -v v3.8.0
2909 error gyp ERR! not ok
2909 error Build failed with error code: 1
2910 verbose exit 1
2911 timing npm Completed in 36040ms
2912 verbose unfinished npm timer reify 1684110835801
2913 verbose unfinished npm timer reify:build 1684110845526
2914 verbose unfinished npm timer build 1684110845527
2915 verbose unfinished npm timer build:deps 1684110845528
2916 verbose unfinished npm timer build:run:postinstall 1684110866353
2917 verbose unfinished npm timer build:run:postinstall:node_modules/node-sass 1684110866376
2918 verbose code 1
2919 error A complete log of this run can be found in:
2919 error C:\Users\Diego\AppData\Local\npm-cache_logs\2023-05-15T00_33_55_761Z-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