SharePoint 2019 OnPrem - SPFx 1.4.1 开发环境兼容性

SharePoint 2019 OnPrem - SPFx 1.4.1 development environment compatibility

提问人:Cleemas 提问时间:11/16/2023 更新时间:11/16/2023 访问量:14

问:

我最近设置了一个新的工作站,并开始测试新环境。不幸的是,我在尝试运行“yo @microsofst/sharepoint”进行脚手架时遇到了问题。

以下是我正在使用的当前版本:

节点 v16.15.0 |NPM 版本 6.14.11

+-- @microsoft/[email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]

哟医生:

Yeoman Doctor
Running sanity checks on your system

√ No .bowerrc file in home directory
√ Global configuration file is valid
√ NODE_PATH matches the npm root
√ No .yo-rc.json file in home directory
√ Node.js version
√ npm version
× yo version

您的 yo 版本已过时。

When I run yo:
Make sure you are in the directory you want to scaffold into.
This generator can also be run with: yo @microsoft/sharepoint

Error

This generator (@microsoft/sharepoint:app) requires yeoman-environment at least 3.0.0, current version is 2.10.3, try reinstalling latest version of 'yo' or use '--ignore-version-check' option
SPFX SharePoint 2019

评论


答:

0赞 Cleemas 11/16/2023 #1

这对我有用:

@microsoft/generator-shar[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

使用 NodeJS 版本 - 8.17.0