Closed devanihiren closed 1 month ago
Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned.
Hi @devanihiren , seems TTK failed to installed yo locally in.fx
folder under your home directory when adding web parts. Could you please help check the SPFx version you're using in your project(you could find that in .yo-rc.json) and the one that is locally installed under .fx\bin\spGenerator
? You could also remediate the problem by installing yo & @microsoft/generator-sharepoint globally(SharePoint generator version should be the same with the one you're using in your project).
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.
Due to lack of details for further investigation, we will archive the issue for now. In case you still have following-up questions on this issue, please always feel free to reopen the issue by clicking ‘reopen issue’ button below the comment box. We will get back to you as soon as possible.
It looks like you're facing problem setting up SPFx environment in HOME/.fx folder. Follow https://aka.ms/teamsfx-spfx-help-v5 to install yo@latest for global SPFx environment setup.
stack: PackageTargetVersionInstallError: It looks like you're facing problem setting up SPFx environment in HOME/.fx folder. Follow https://aka.ms/teamsfx-spfx-help-v5 to install yo@latest for global SPFx environment setup. at Object.PackageTargetVersionInstallError (/extension.js:2:785054)
at SPFxGenerator.ensureLocalDependencies (/extension.js:2:801627)
at async SPFxGenerator.doYeomanScaffold (/extension.js:2:796620)
at async AddWebPartDriver.add (/extension.js:2:345073)
at async Object.wrapRun (/extension.js:2:926194)
at async AddWebPartDriver. (/extension.js:2:492921)
at async FxCore.addWebpart (/extension.js:2:967780)
at async exports.ConcurrentLockerMW (/extension.js:2:1048659)
at async exports.ProjectMigratorMWV3 (/extension.js:2:1080366)
at async FxCore. (/extension.js:2:872253)
at async exports.ErrorHandlerMW (/extension.js:2:1050205)
at async FxCore. (/extension.js:2:1045956)