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 年前412 查看次数
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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则