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.

demandé il y a 3 ans411 vues
3 réponses
0
Réponse acceptée

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
répondu il y a 2 ans
0

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

répondu il y a 2 ans
0

Thanks, that works!

répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions