关于github博客
  • 板块灌水区
  • 楼主fengben123
  • 当前回复7
  • 已保存回复0
  • 发布时间2024/2/22 21:06
  • 上次更新2024/2/22 21:41:01
查看原帖
关于github博客
721499
fengben123楼主2024/2/22 21:06

在上传时 输入 hexo -g 时报错

FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Cannot find module 'nodejieba'
Require stack:
- D:\Hexo\node_modules\hexo-theme-redefine\scripts\helpers\articleRecommend.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
    at Module._load (node:internal/modules/cjs/loader:975:27)
    at Module.require (node:internal/modules/cjs/loader:1225:19)
    at req (D:\Hexo\node_modules\hexo\dist\hexo\index.js:241:31)
    at tokenize (D:\Hexo\node_modules\hexo-theme-redefine\scripts\helpers\articleRecommend.js:185:17)
    at D:\Hexo\node_modules\hexo-theme-redefine\scripts\helpers\articleRecommend.js:31:19
    at _Query.forEach (D:\Hexo\node_modules\warehouse\dist\query.js:34:13)
    at fetchData (D:\Hexo\node_modules\hexo-theme-redefine\scripts\helpers\articleRecommend.js:24:5)
    at Hexo.<anonymous> (D:\Hexo\node_modules\hexo-theme-redefine\scripts\helpers\articleRecommend.js:16:5)
    at Hexo.tryCatcher (D:\Hexo\node_modules\bluebird\js\release\util.js:16:23)
    at Hexo.<anonymous> (D:\Hexo\node_modules\bluebird\js\release\method.js:15:34)
    at D:\Hexo\node_modules\hexo\dist\extend\filter.js:58:67
    at tryCatcher (D:\Hexo\node_modules\bluebird\js\release\util.js:16:23)
    at Object.gotValue (D:\Hexo\node_modules\bluebird\js\release\reduce.js:166:18)
    at Object.gotAccum (D:\Hexo\node_modules\bluebird\js\release\reduce.js:155:25)
    at Object.tryCatcher (D:\Hexo\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\Hexo\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\Hexo\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\Hexo\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise._settlePromises (D:\Hexo\node_modules\bluebird\js\release\promise.js:729:18)
    at _drainQueueStep (D:\Hexo\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (D:\Hexo\node_modules\bluebird\js\release\async.js:86:9)

在 hexo -d 时:

FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Cannot find module 'nodejieba'
Require stack:
- D:\Hexo\node_modules\hexo-theme-redefine\scripts\helpers\articleRecommend.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
    at Module._load (node:internal/modules/cjs/loader:975:27)
    at Module.require (node:internal/modules/cjs/loader:1225:19)
    at req (D:\Hexo\node_modules\hexo\dist\hexo\index.js:241:31)
    at tokenize (D:\Hexo\node_modules\hexo-theme-redefine\scripts\helpers\articleRecommend.js:185:17)
    at D:\Hexo\node_modules\hexo-theme-redefine\scripts\helpers\articleRecommend.js:31:19
    at _Query.forEach (D:\Hexo\node_modules\warehouse\dist\query.js:34:13)
    at fetchData (D:\Hexo\node_modules\hexo-theme-redefine\scripts\helpers\articleRecommend.js:24:5)
    at Hexo.<anonymous> (D:\Hexo\node_modules\hexo-theme-redefine\scripts\helpers\articleRecommend.js:16:5)
    at Hexo.tryCatcher (D:\Hexo\node_modules\bluebird\js\release\util.js:16:23)
    at Hexo.<anonymous> (D:\Hexo\node_modules\bluebird\js\release\method.js:15:34)
    at D:\Hexo\node_modules\hexo\dist\extend\filter.js:58:67
    at tryCatcher (D:\Hexo\node_modules\bluebird\js\release\util.js:16:23)
    at Object.gotValue (D:\Hexo\node_modules\bluebird\js\release\reduce.js:166:18)
    at Object.gotAccum (D:\Hexo\node_modules\bluebird\js\release\reduce.js:155:25)
    at Object.tryCatcher (D:\Hexo\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (D:\Hexo\node_modules\bluebird\js\release\promise.js:547:31)
    at Promise._settlePromise (D:\Hexo\node_modules\bluebird\js\release\promise.js:604:18)
    at Promise._settlePromise0 (D:\Hexo\node_modules\bluebird\js\release\promise.js:649:10)
    at Promise._settlePromises (D:\Hexo\node_modules\bluebird\js\release\promise.js:729:18)
    at _drainQueueStep (D:\Hexo\node_modules\bluebird\js\release\async.js:93:12)
    at _drainQueue (D:\Hexo\node_modules\bluebird\js\release\async.js:86:9)

在下载输入 npm install nodejieba时 报错:

npm ERR! code 1
npm ERR! path D:\Hexo\node_modules\nodejieba
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-pre-gyp install --fallback-to-build
npm ERR! Failed to execute 'D:\node\node.exe D:\node\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=D:\Hexo\node_modules\nodejieba\build\Release\nodejieba.node --module_name=nodejieba --module_path=D:\Hexo\node_modules\nodejieba\build\Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@1.0.11
npm ERR! node-pre-gyp info using node@18.19.0 | win32 | x64
npm ERR! node-pre-gyp info check checked for "D:\Hexo\node_modules\nodejieba\build\Release\nodejieba.node" (not found)
npm ERR! node-pre-gyp http GET https://github.com/yanyiwu/nodejieba/releases/download/v2.6.0/nodejieba-v2.6.0-node-v108-win32-x64.tar.gz
npm ERR! node-pre-gyp ERR! install request to https://github.com/yanyiwu/nodejieba/releases/download/v2.6.0/nodejieba-v2.6.0-node-v108-win32-x64.tar.gz failed, reason: unable to verify the first certificate
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for nodejieba@2.6.0 and node@18.19.0 (node-v108 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp WARN Hit error request to https://github.com/yanyiwu/nodejieba/releases/download/v2.6.0/nodejieba-v2.6.0-node-v108-win32-x64.tar.gz failed, reason: unable to verify the first certificate
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@10.0.1
npm ERR! gyp info using node@18.19.0 | win32 | x64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@10.0.1
npm ERR! gyp info using node@18.19.0 | win32 | x64
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
npm ERR! gyp ERR! find Python checking if the py launcher can be used to find Python 3
npm ERR! gyp ERR! find Python - executable path is ""
npm ERR! gyp ERR! find Python - "" could not be run
npm ERR! gyp ERR! find Python checking if "python3" can be used
npm ERR! gyp ERR! find Python - executable path is ""
npm ERR! gyp ERR! find Python - "" could not be run
npm ERR! gyp ERR! find Python checking if "python" can be used
npm ERR! gyp ERR! find Python - executable path is ""
npm ERR! gyp ERR! find Python - "" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\fengben123\AppData\Local\Programs\Python\Python311\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Users\fengben123\AppData\Local\Programs\Python\Python311\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python311\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files\Python311\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\fengben123\AppData\Local\Programs\Python\Python311-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Users\fengben123\AppData\Local\Programs\Python\Python311-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python311-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files\Python311-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python311-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python311-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\fengben123\AppData\Local\Programs\Python\Python310\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Users\fengben123\AppData\Local\Programs\Python\Python310\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python310\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files\Python310\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\fengben123\AppData\Local\Programs\Python\Python310-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Users\fengben123\AppData\Local\Programs\Python\Python310-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python310-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files\Python310-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python310-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python310-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\fengben123\AppData\Local\Programs\Python\Python39\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Users\fengben123\AppData\Local\Programs\Python\Python39\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files\Python39\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\fengben123\AppData\Local\Programs\Python\Python39-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Users\fengben123\AppData\Local\Programs\Python\Python39-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python39-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files\Python39-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python39-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python39-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\fengben123\AppData\Local\Programs\Python\Python38\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Users\fengben123\AppData\Local\Programs\Python\Python38\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files\Python38\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Users\fengben123\AppData\Local\Programs\Python\Python38-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Users\fengben123\AppData\Local\Programs\Python\Python38-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files\Python38-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files\Python38-32\python.exe" could not be run
npm ERR! gyp ERR! find Python checking if Python is C:\Program Files (x86)\Python38-32\python.exe
npm ERR! gyp ERR! find Python - version is ""
npm ERR! gyp ERR! find Python - version is  - should be >=3.6.0
npm ERR! gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
npm ERR! gyp ERR! find Python - "C:\Program Files (x86)\Python38-32\python.exe" could not be run
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python You need to install the latest version of Python.
npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
npm ERR! gyp ERR! find Python you can try one of the following options:
npm ERR! gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)
npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
npm ERR! gyp ERR! find Python npm config set python "C:\Path\To\python.exe"
npm ERR! gyp ERR! find Python For more information consult the documentation at:
npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
npm ERR! gyp ERR! stack at PythonFinder.fail (D:\node\node_modules\npm\node_modules\node-gyp\lib\find-python.js:306:11)
npm ERR! gyp ERR! stack at PythonFinder.findPython (D:\node\node_modules\npm\node_modules\node-gyp\lib\find-python.js:164:17)
npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm ERR! gyp ERR! stack at async configure (D:\node\node_modules\npm\node_modules\node-gyp\lib\configure.js:23:18)
npm ERR! gyp ERR! stack at async run (D:\node\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js:81:18)
npm ERR! gyp ERR! System Windows_NT 10.0.22621
npm ERR! gyp ERR! command "D:\\node\\node.exe" "D:\\node\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=D:\\Hexo\\node_modules\\nodejieba\\build\\Release\\nodejieba.node" "--module_name=nodejieba" "--module_path=D:\\Hexo\\node_modules\\nodejieba\\build\\Release" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v108"
npm ERR! gyp ERR! cwd D:\Hexo\node_modules\nodejieba
npm ERR! gyp ERR! node -v v18.19.0
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute 'D:\node\node.exe D:\node\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=D:\Hexo\node_modules\nodejieba\build\Release\nodejieba.node --module_name=nodejieba --module_path=D:\Hexo\node_modules\nodejieba\build\Release --napi_version=9 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v108' (1)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (D:\Hexo\node_modules\@mapbox\node-pre-gyp\lib\util\compile.js:89:23)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:517:28)
npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1098:16)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:303:5)
npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.22621
npm ERR! node-pre-gyp ERR! command "D:\\node\\node.exe" "D:\\Hexo\\node_modules\\@mapbox\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd D:\Hexo\node_modules\nodejieba
npm ERR! node-pre-gyp ERR! node -v v18.19.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.11
npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in: C:\Users\fengben123\AppData\Local\npm-cache\_logs\2024-02-22T12_21_06_876Z-debug-0.log

在输入 : npm install --global --production windows-build-tools

报错:

npm WARN config production Use `--omit=dev` instead.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated windows-build-tools@5.2.2: Node.js now includes build tools for Windows. You probably no longer need this tool. See https://github.com/felixrieseberg/windows-build-tools for details.
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\fengben123\\AppData\\Roaming\\npm\\node_modules\\windows-build-tools\\node_modules\\uri-js',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\fengben123\AppData\Roaming\npm\node_modules\windows-build-tools\node_modules\uri-js\dist'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'C:\\Users\\fengben123\\AppData\\Roaming\\npm\\node_modules\\windows-build-tools\\node_modules\\uri-js\\dist'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\fengben123\\AppData\\Roaming\\npm\\node_modules\\windows-build-tools\\node_modules\\verror',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\fengben123\AppData\Roaming\npm\node_modules\windows-build-tools\node_modules\verror'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'C:\\Users\\fengben123\\AppData\\Roaming\\npm\\node_modules\\windows-build-tools\\node_modules\\verror'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\fengben123\\AppData\\Roaming\\npm\\node_modules\\windows-build-tools\\node_modules',
npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\fengben123\AppData\Roaming\npm\node_modules\windows-build-tools\node_modules\verror'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'rmdir',
npm WARN cleanup       path: 'C:\\Users\\fengben123\\AppData\\Roaming\\npm\\node_modules\\windows-build-tools\\node_modules\\verror'
npm WARN cleanup     }
npm WARN cleanup   ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path C:\Users\fengben123\AppData\Roaming\npm\node_modules\windows-build-tools
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node ./dist/index.js
Downloading python-2.7.15.amd64.msi
npm ERR! [============================================>] 100.0% (0 B/s)
npm ERR! Downloaded python-2.7.15.amd64.msi. Saved to C:\Users\fengben123\.windows-build-tools\python-2.7.15.amd64.msi.
Downloading vs_BuildTools.exe
npm ERR! [============================================>] 100.0% (0 B/s)
npm ERR! Downloaded vs_BuildTools.exe. Saved to C:\Users\fengben123\.windows-build-tools\vs_BuildTools.exe.
npm ERR!
npm ERR! Starting installation...
npm ERR! Downloading installers failed. Error: TypeError: 'process.env' only accepts a configurable, writable, and enumerable data descriptor
npm ERR!     at Function.defineProperty (<anonymous>)
npm ERR!     at Object.removePath (C:\Users\fengben123\AppData\Roaming\npm\node_modules\windows-build-tools\dist\utils\remove-path.js:11:12)
npm ERR!     at Object.install (C:\Users\fengben123\AppData\Roaming\npm\node_modules\windows-build-tools\dist\install\index.js:29:19)
npm ERR!     at C:\Users\fengben123\AppData\Roaming\npm\node_modules\windows-build-tools\dist\start.js:17:19
npm ERR!     at Object.download (C:\Users\fengben123\AppData\Roaming\npm\node_modules\windows-build-tools\dist\download.js:35:5)
npm ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm ERR!     at async Object.aquireInstallers (C:\Users\fengben123\AppData\Roaming\npm\node_modules\windows-build-tools\dist\aquire-installers.js:32:13) {
npm ERR!   code: 'ERR_INVALID_OBJECT_DEFINE_PROPERTY'
npm ERR! }
npm ERR! windows-build-tools will now exit.

npm ERR! A complete log of this run can be found in: C:\Users\fengben123\AppData\Local\npm-cache\_logs\2024-02-22T12_42_37_712Z-debug-0.log

还有好多我上网搜的教程我都跟着弄了,比如python 环境变量,但是这些不能解决我没办法下载nodejieba的实际问题,这个问题是在我用github想弄博客时配置好后,第一次上传没问题,在我弄好个性化设置后出现的问题。求助谷民,我已经弄了半天了,看了大部分的博客教程了还是无法解决,求求了,帮帮我

2024/2/22 21:06
加载中...