Update Node to LTS

0

According to DF documentation, "Device Farm supports all Appium server versions 1.6.5 and above." Appium 1.21 & 1.22 requires at least Node v12, but the current Node version in DF is set to v10. How do I update the version or set it to a specific version? I tried "n lts" in the yaml file, but got "mkdir: cannot create directory ‘/usr/local/n’: Permission denied".

There are fixes in 1.21/1.22 that we need for mobile testing.

質問済み 2年前394ビュー
3回答
0
承認された回答

Thanks for reaching out. Here are commands you can add to your test spec file in order to upgrade your Node version:

[code]

  • export NVM_DIR=$HOME/.nvm
  • . $NVM_DIR/nvm.sh
  • nvm install --lts
    [/code]
AWS
回答済み 2年前
0

Can someone please provide info on how to update Node.js in DF?

回答済み 2年前
0

Thanks, that works!

回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ