前提・実現したいこと
質問よろしくお願いします。
現在下記のwebauthnのデモをHerokuにデプロイして動作しようとしたところ下記エラーが発生してApplication errorになります。
https://github.com/apowers313/fido2-server-demo/
これまで試した事と現在のHerokuのBuildpacksなどを下記に記載していますがエラーの対処法やBuildpacksなどデモが動作するのに必要な物を教えて頂けると幸いです。
お手数ですがご教授よろしくお願いします。
発生している問題・エラーメッセージ
> node-webcrypto-ossl@1.0.48 install /app/node_modules/node-webcrypto-ossl > node-gyp rebuild make: Entering directory '/app/node_modules/node-webcrypto-ossl/build' CXX(target) Release/obj.target/nodessl/src/main.o make: g++: Command not found nodessl.target.mk:146: recipe for target 'Release/obj.target/nodessl/src/main.o' failed make: *** [Release/obj.target/nodessl/src/main.o] Error 127 make: Leaving directory '/app/node_modules/node-webcrypto-ossl/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/app/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:210:5) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) gyp ERR! System Linux 4.4.0-1048-aws gyp ERR! command "/app/.heroku/node/bin/node" "/app/.heroku/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /app/node_modules/node-webcrypto-ossl gyp ERR! node -v v12.13.1 gyp ERR! node-gyp -v v5.0.5 gyp ERR! not ok npm WARN test@1.0.0 No description npm WARN test@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-webcrypto-ossl@1.0.48 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-webcrypto-ossl@1.0.48 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /app/.npm/_logs/debug.log
試したこと
上記エラーまでの操作手順です。
1,Herokuのアカウント作成
2,上記fido2-server-demoのclone
3,push heroku master
補足情報(FW/ツールのバージョンなど)
◯Framework
Node.js
◯Buildpacks
heroku/nodejs
あなたの回答
tips
プレビュー