vfox icon indicating copy to clipboard operation
vfox copied to clipboard

[BUG]: Used Node version 12, but encountered an unsupported version error while installing dependencies.

Open yh4922 opened this issue 11 months ago • 3 comments

I specified the version in the project using vfox use node@12

image

Using node -v to check the version, it indeed confirms the successful switch.

image

But when using yarn to install dependencies, it prompts that the node version is not supported and indicates that I am using a different node version.

image

In my system, there are three versions of Node.

image

yh4922 avatar Mar 15 '24 08:03 yh4922

"I can install it directly using npm install."

yh4922 avatar Mar 15 '24 08:03 yh4922

You didn't hook vfox correctly.

Please see following docs:

https://vfox.lhan.me/zh-hans/guides/quick-start.html#_2-%E6%8C%82%E8%BD%BDvfox%E5%88%B0%E4%BD%A0%E7%9A%84shell

https://vfox.lhan.me/zh-hans/guides/faq.html#%E5%88%87%E6%8D%A2xxx%E4%B8%8D%E7%94%9F%E6%95%88-vfox-use%E5%91%BD%E4%BB%A4%E4%B8%8D%E7%94%9F%E6%95%88

aooohan avatar Mar 15 '24 08:03 aooohan

I have configured it, but I still encounter failures when installing through yarn. image

yh4922 avatar Mar 15 '24 09:03 yh4922