初投稿となり、わかりずらくなるかもしれませんがご了承ください
自身が以前作ったアプリからgit cloneをし、全く新しいリポジトリを作成して別アプリとして開発しようとしています。
git push heroku masterをすると
console
1remote: Cleaning up the bundler cache. 2remote: -----> Installing node-v16.13.1-linux-x64 3remote: -----> Installing yarn-v1.22.17 4remote: -----> Detecting rake tasks 5remote: -----> Preparing app for Rails asset pipeline 6remote: Running: rake assets:precompile 7remote: yarn install v1.22.17 8remote: [1/5] Validating package.json... 9remote: error baton_app5@0.1.0: The engine "node" is incompatible with this module. Expected version "14.18.3". Got "16.13.1" 10remote: error Found incompatible module. 11remote: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. 12remote:
どうやらnodeのバージョンが16.13.1になってしまっているようなのですが、
node -v コマンドで確認をすると
console
1v14.18.3
と出てきていて問題ないように見えます。
一応package.jsonも確認しましたが
package.json
1{ 2 "name": "baton_app5", 3 "private": true, 4 "dependencies": { 5 "@rails/actioncable": "^6.0.0-alpha", 6 "@rails/activestorage": "^6.0.0-alpha", 7 "@rails/ujs": "^6.0.0-alpha", 8 "@rails/webpacker": "4.3.0", 9 "turbolinks": "^5.2.0" 10 }, 11 "version": "0.1.0", 12 "devDependencies": { 13 "webpack-dev-server": "^4.7.4" 14 }, 15 "engines": { 16 "node": "14.18.3" 17 } 18}
きちんと入れているように見えます。
気になる点としたらコンソールのエラー文の
console
1remote: -----> Installing node-v16.13.1-linux-x64
の部分なのですが、やはりここが問題となっているのでしょうか。なっているのだとしたらどのように変更できますでしょうか。
長くなり、分かりづらい文章となってしまいましたが、どなたかご回答よろしくお願い致します。
回答1件
あなたの回答
tips
プレビュー