简体   繁体   中英

Problem/issues with Yarn (yarn.js) version upgrade

When trying to upgrade the yarn version form “0.28.4” to “1.22.19” with to buffer an output in the given scenario, but it's not working with updated version. Any suggestion/solution?

需要运行这个命令(child_process.execSync)

Working fine with yarn version form “0.28.4”
纱线版本形式“0.28.4”工作正常

Problem with yarn version form “1.22.19 ”?

纱线版本问题“1.22.19”

trying to upgrade the yarn version form “0.28.4” to “1.22.19” and facing problem with yarn library.

This has been fixed now.

When we execute node command using "child_process.execSync" it return buffer, so we have to convert it into string before parse and keep it in new varibale.

In the above problem, it was reassign to same variable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM