https://www.youtube.com/watch?v=xPvvSI92JJA←の動画を見ながらdockerでwordpressができるように
環境構築をしているのですがエラーが出ており問題解決できません。
試したこと
dockerとnode.jsのアンインストールと再インストール。
設定→更新とセキュリテイー→Windows Insider Programからベータチャネル推奨を選択
パソコンの再起動
ファイルの削除と新たなフォルダ作成
docker
1Windows PowerShell 2Copyright (C) Microsoft Corporation. All rights reserved. 3 4新しいクロスプラットフォームの PowerShell をお試しください https://aka.ms/pscore6 5 6PS C:\Users\User\OneDrive\Desktop\wptest> npm -v 76.9.0 8PS C:\Users\User\OneDrive\Desktop\wptest> npm init 9This utility will walk you through creating a package.json file. 10It only covers the most common items, and tries to guess sensible defaults. 11 12See `npm help json` for definitive documentation on these fields 13and exactly what they do. 14 15Use `npm install <pkg>` afterwards to install a package and 16save it as a dependency in the package.json file. 17 18Press ^C at any time to quit. 19package name: (wptest) 20version: (1.0.0) 21description: 22entry point: (index.js) 23test command: 24git repository: 25keywords: 26author: 27license: (ISC) 28About to write to C:\Users\User\OneDrive\Desktop\wptest\package.json: 29 30{ 31 "version": "1.0.0", 32 "description": "", 33 "main": "index.js", 34 "scripts": { 35 "test": "echo \"Error: no test specified\" && exit 1" 36 }, 37 "author": "", 38 "license": "ISC" 39} 40 41 42Is this OK? (yes) 43PS C:\Users\User\OneDrive\Desktop\wptest> 44PS C:\Users\User\OneDrive\Desktop\wptest> npm i @wordpress/env --save-dev 45npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 46npm WARN deprecated har-validator@5.1.5: this library is no longer supported 47npm WARN lifecycle The node binary used for scripts is C:\Program Files (x86)\Nodist\bin\node.exe but npm is using C:\Program Files (x86)\Nodist\v-x64\11.13.0\node.exe itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with. 48 49> nodegit@0.27.0 install C:\Users\User\OneDrive\Desktop\wptest\node_modules\nodegit 50> node lifecycleScripts/preinstall && node lifecycleScripts/install 51 52[nodegit] Running pre-install script 53[nodegit] Running install script 54node-pre-gyp 55WARN Using request for node-pre-gyp https download 56node-pre-gyp 57WARN Tried to download(404): https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.27.0-node-v67-win32-x64.tar.gz 58node-pre-gyp WARN Pre-built binaries not found for nodegit@0.27.0 and node@11.13.0 (node-v67 ABI, unknown) (falling back to source compile with node-gyp) 59gyp 60ERR! configure error 61gyp ERR! stack Error: Command failed: C:\Python39\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3]; 62gyp ERR! stack File "<string>", line 1 63gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; 64gyp ERR! stack ^ 65gyp ERR! stack SyntaxError: invalid syntax 66gyp ERR! stack 67gyp ERR! stack at ChildProcess.exithandler (child_process.js:297:12) 68gyp ERR! stack at ChildProcess.emit (events.js:193:13) 69gyp ERR! stack at maybeClose (internal/child_process.js:1001:16) 70gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:266:5) 71gyp ERR! System Windows_NT 10.0.19042 72gyp ERR! command "C:\Program Files (x86)\Nodist\v-x64\11.13.0\node.exe" "C:\Program Files (x86)\Nodist\npmv\6.9.0\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\User\OneDrive\Desktop\wptest\node_modules\nodegit\build\Release\nodegit.node" "--module_name=nodegit" "--module_path=C:\Users\User\OneDrive\Desktop\wptest\node_modules\nodegit\build\Release" "--napi_version=4" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v67" 73gyp ERR! cwd C:\UsersUser\OneDrive\Desktop\wptest\node_modules\nodegit 74gyp ERR! node -v v11.13.0 75gyp ERR! node-gyp -v v3.8.0 76gyp ERR! not ok 77Failed to execute 'C:\Program Files (x86)\Nodist\v-x64\11.13.0\node.exe C:\Program Files (x86)\Nodist\npmv\6.9.0\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\UsersUser\OneDrive\Desktop\wptest\node_modules\nodegit\build\Release\nodegit.node --module_name=nodegit --module_path=C:\Users\User\OneDrive\Desktop\wptest\node_modules\nodegit\build\Release --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v67' (1) 78node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files (x86)\Nodist\v-x64\11.13.0\node.exe C:\Program Files (x86)\Nodist\npmv\6.9.0\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\User\OneDrive\Desktop\wptest\node_modules\nodegit\build\Release\nodegit.node --module_name=nodegit --module_path=C:\Users\User\OneDrive\Desktop\wptest\node_modules\nodegit\build\Release --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v67' (1) 79node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\User\OneDrive\Desktop\wptest\node_modules\node-pre-gyp\lib\util\compile.js:83:29) 80node-pre-gyp ERR! stack at ChildProcess.emit (events.js:193:13) 81node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1001:16) 82node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:266:5) 83node-pre-gyp ERR! System Windows_NT 10.0.19042 84node-pre-gyp ERR! command "C:\Program Files (x86)\Nodist\v-x64\11.13.0\node.exe" "C:\Users\User\OneDrive\Desktop\wptest\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" 85node-pre-gyp ERR! cwd C:\Users\User\OneDrive\Desktop\wptest\node_modules\nodegit 86node-pre-gyp ERR! node -v v11.13.0 87node-pre-gyp ERR! node-pre-gyp -v v0.13.0 88node-pre-gyp ERR! not ok 89[nodegit] ERROR - Could not finish install 90[nodegit] ERROR - finished with error code: 1 91npm WARN wptest@1.0.0 No description 92npm WARN wptest@1.0.0 No repository field. 93 94npm ERR! code ELIFECYCLE 95npm ERR! errno 1 96npm ERR! nodegit@0.27.0 install: `node lifecycleScripts/preinstall && node lifecycleScripts/install` 97npm ERR! Exit status 1 98npm ERR! 99npm ERR! Failed at the nodegit@0.27.0 install script. 100npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 101 102npm ERR! A complete log of this run can be found in: 103npm ERR! C:\Users\User\AppData\Roaming\npm-cache\_logs\2020-12-23T14_10_00_407Z-debug.log 104PS C:\Users\User\OneDrive\Desktop\wptest> 105PS C:\Users\User\OneDrive\Desktop\wptest>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/12/25 06:58