今日わかったことをとりあえず書き出しただけ
yarn build
ビルドしてくれる
serve -s client/dist
サーバを動かす
↑
netlify.tomlに書いてあったものを実行したが関係なさそう…
本当はgithubのreadMEに書いてある手順で実行すればできた
To start a server, go into the project folder and install dependencies/run start command:
cd SkyOffice or 'my-folder-name'
yarn && yarn start
To start a client, go into the client folder and install dependencies/run start command:
cd SkyOffice/client or 'my-folder-name/client'
yarn && yarn dev
エラー
以下のエラーが出た
npm ERR! gyp ERR! cwd C:\Users\rnbmx\Documents\GitHub\SkyOffice\node_modules\bcrypt
npm ERR! gyp ERR! node -v v18.17.1
npm ERR! gyp ERR! node-gyp -v v9.3.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 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\rnbmx\Documents\GitHub\SkyOffice\node_modules\bcrypt\lib\binding\napi-v3\bcrypt_lib.node --module_name=bcrypt_lib --module_path=C:\Users\rnbmx\Documents\GitHub\SkyOffice\node_modules\bcrypt\lib\binding\napi-v3 --napi_version=9 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess. (C:\Users\rnbmx\Documents\GitHub\SkyOffice\node_modules@mapbox\node-pre-gyp\lib\util\compile.js:89:23)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:514:28)
npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1091:16)
npm ERR! node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.22621
npm ERR! node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\rnbmx\Documents\GitHub\SkyOffice\node_modules\@mapbox\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd C:\Users\rnbmx\Documents\GitHub\SkyOffice\node_modules\bcrypt
npm ERR! node-pre-gyp ERR! node -v v18.17.1
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.9
npm ERR! node-pre-gyp ERR! not ok
npm ERR! A complete log of this run can be found in: C:\Users\rnbmx\AppData\Local\npm-cache_logs\2024-06-05T05_17_05_552Z-debug-0.log
インストールできてなかっただけだった
npm install bcrypt
ローカルホストで動かせたけどまだ他のPCからはアクセスできない