我遵循microsoft文档来设置SharePoint框架。 https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment但是,当我到了应该安装发电机的地步时,它给了我这个错误。
>>
PS C:\Users\jakub.yaghob> npm install @microsoft/generator-sharepoint -g
>>
npm WARN notsup Unsupported engine for got@5.7.1: wanted: {"node":">=0.10.0 <7"}
(current: {"node":"12.13.0","npm":"6.13.0"})
>>
npm WARN notsup Not compatible with your version of node/npm: got@5.7.1
>>
+ @microsoft/generator-sharepoint@1.9.1
updated 1 package in 8.851s
我尝试了旧版本的node.js,但是它们太旧而无法与新的npm一起使用,或者它们太新而无法与生成器一起使用。 任何帮助将不胜感激。谢谢!