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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠