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.

已提問 3 年前檢視次數 411 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南