yarn install error Expected version

版权声明:本文为博主原创文章,可以随意自由转载传播,但请注明出处. https://blog.csdn.net/aikongmeng/article/details/81532321
yarn install v1.7.0
warning ../../package.json: No license field
[1/4] Resolving packages...
(node:893) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[2/4] Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=4 <=9".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Process finished with exit code 1

解决方法:

sudo yarn install --ignore-engines

猜你喜欢

转载自blog.csdn.net/aikongmeng/article/details/81532321