対象Project
Set Up Your iOS Development Environment 単元 | Salesforce Trailhead
発生した問題
Install Forceios にて、forceiosのバージョン確認のためにforceios version
を実行した際に
$ forceios version Missing tools Installed node version (11.13.0) is more than the maximum supported version (11.1). Please downgrade your version of node.
と、エラーが発生。 バージョンが新しすぎるってどうすればいいの。。
解決方法
How to Upgrade (or Downgrade) Node.js using NPMの内容を参考に、以下の順にコマンドを実行した。
$ sudo npm cache clean -f npm WARN using --force I sure hope you know what you are doing. $ sudo npm install -g n /usr/local/bin/n -> /usr/local/lib/node_modules/n/bin/n + n@3.0.2 added 1 package from 4 contributors in 0.339s $ sudo n 11.1.0 install : node-v11.1.0 mkdir : /usr/local/n/versions/node/11.1.0 fetch : https://nodejs.org/dist/v11.1.0/node-v11.1.0-darwin-x64.tar.gz ######################################################################## 100.0% installed : v11.1.0
これで"maximum supported version (11.1)"までダウングレードできたため、手順を進めて、無事エラーを回避できた。
$ sudo gem install cocoapods (省略) $ forceios version forceios version 7.0.0