Closed hoanghieut2 closed 1 month ago
Hi @hoanghieut2, it seems that TTK failed to install latest package dependency. Could you help attach the error details in Teams Toolkit output window?
@HuihuiWu-Microsoft : pls refer attach file. I can create new project by teams toolkit before.
@hoanghieut2 It failed when running npm install command. Could you help try to execute npm.cmd install yo@latest --prefix C:\Users\<username>\.fx\bin\yo --no-audit --global-style
in command line and attach error details if any?
BTW, could you help attach the TTK version you're using?
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.
Unable to set up SPFx environment in HOME/.fx folder. To set up global SPFx environment, follow Set up your SharePoint Framework development environment | Microsoft Learn.
stack: LatestPackageInstallFailed: Unable to set up SPFx environment in HOME/.fx folder. To set up global SPFx environment, follow Set up your SharePoint Framework development environment | Microsoft Learn. at Object.LatestPackageInstallError (/extension.js:2:784510)
at SPFxGenerator.ensureLocalDependencies (/extension.js:2:801745)
at async SPFxGenerator.doYeomanScaffold (/extension.js:2:796620)
at async SPFxGenerator.newSPFxProject (/extension.js:2:790643)
at async SPFxGenerator.generate (/extension.js:2:790434)
at async SPFxGenerator. (/extension.js:2:868281)
at async Coordinator.create (/extension.js:2:259282)
at async Coordinator. (/extension.js:2:868281)
at async Coordinator. (/extension.js:2:1045956)
at async FxCore.createProject (/extension.js:2:963212)
at async FxCore. (/extension.js:2:872253)
at async exports.ErrorHandlerMW (/extension.js:2:1050205)
at async FxCore. (/extension.js:2:1045956)