Adaloカスタムコンポーネントテスト環境用mobile-previewerのインストール時のエラー1
エラー発生状況
- AdaloのカスタムコンポーネントをiOSのエミュレーターでテストするため、こちらの手順を順次実行
- mobile-previewerのリポジトリをclone後、
mobile-previewer/ios
フォルダに移動後、pod install
を実行すると下記のエラーが発生
% yarn install
yarn install v1.22.19
[1/4]
Resolving packages...
[2/4]
Fetching packages...
error @protonapp/proton-runner@1.0.0: The engine "node" is incompatible with this module. Expected version "14". Got "18.11.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
% yarn install
yarn install v1.22.19
[1/4]
Resolving packages...
[2/4]
Fetching packages...
error @protonapp/proton-runner@1.0.0: The engine "node" is incompatible with this module. Expected version "14". Got "18.11.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
% yarn install yarn install v1.22.19 [1/4]Resolving packages... [2/4]
Fetching packages... error @protonapp/proton-runner@1.0.0: The engine "node" is incompatible with this module. Expected version "14". Got "18.11.0" error Found incompatible module. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
解決策
- nodeのバージョンを14.0.0にダウングレードして再度
pod install
を実行
手順詳細
- エラー発生時のnodeのバージョンを確認
% node --version
v18.11.0 n
をインストール% npm install -g n
- nodeのバージョンを変更
% sudo n 14.0.0
installing : node-v14.0.0
mkdir : /usr/local/n/versions/node/14.0.0
fetch : https://nodejs.org/dist/v14.0.0/node-v14.0.0-darwin-x64.tar.xz
tar: Failed to set default locale
copying : node/14.0.0
installed : v14.0.0 (with npm 6.14.4) - nodeのバージョンを確認
% node --version
v14.0.0
ディスカッション
コメント一覧
まだ、コメントがありません