在对 Angular 的文档 aio 进行编译的时候提示错误
发布时间:2020-12-17 17:44:57 所属栏目:安全 来源:网络整理
导读:error [email?protected]: The engine "yarn" is incompatible with this module. Expected version "=1.10.1 1.14.0". Got "1.14.0"error Found incompatible moduleinfo Visit https://yarnpkg.com/en/docs/cli/install for documentation about this comm
error [email?protected]: The engine "yarn" is incompatible with this module. Expected version ">=1.10.1 <1.14.0". Got "1.14.0" error Found incompatible module info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. C:UsersYuchengDocumentsWorkDirRepositoryAngularangular-cnaionode_modulesyargsyargs.js:1078 else throw err ^ ? 根据错误的提示是 Yarn 的版本过高了。 请需要根据提示使用 Yarn 1.13 版本就可以了。我们在 aio 文档进行编译的时候,发现如果 yarn 的版本过高的话是没有办法编译成功的,因此请不要按照过高的 yarn 版本。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |