安装Vue Storefront出错:error [email protected]: The engine "node" is incompatible with this module.
yarn global add @vue-storefront/cli yarn global v1.21.0 [1/4] Resolving packages... warning @vue-storefront/cli > oclif > yeoman-environment > @npmcli/arborist > @npmcli/[email protected]: This functionality has been moved to @npmcli/fs warning @vue-storefront/cli > oclif > yeoman-environment > @npmcli/arborist > cacache > @npmcli/[email protected]: This functionality has been moved to @npmcli/fs warning @vue-storefront/cli > oclif > yeoman-environment > @npmcli/arborist > [email protected]: This functionality has been moved to @npmcli/fs warning @vue-storefront/cli > oclif > aws-sdk > [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. warning @vue-storefront/cli > oclif > aws-sdk > url > [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. warning @vue-storefront/cli > oclif > yeoman-environment > @npmcli/arborist > npm-registry-fetch > make-fetch-happen > cacache > @npmcli/[email protected]: This functionality has been moved to @npmcli/fs [2/4] Fetching packages... error create-strapi[email protected]: The engine "node" is incompatible with this module. Expected version ">=10.16.0 <=14.x.x". Got "16.15.1" error Found incompatible module. info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
vue storefont并不依赖strapi,这里错误的出现原因是由于yarn检查所有包的兼容性,由于此前安装过strapi的cli工具所以检测到和当前nodejs版本兼容性问题而退出安装。
解决方法
yarn global remove create-strapi-app