You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 Uko (<REDACTED: user-file-path>/extension.js:680:19767)
at Function.ensureLocalDependencies (<REDACTED: user-file-path>/extension.js:741:1243)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Function.doYeomanScaffold (<REDACTED: user-file-path>/extension.js:736:101192)
at Hkr.getTemplateInfos (<REDACTED: user-file-path>/extension.js:741:9841)
at Hkr.run (<REDACTED: user-file-path>/extension.js:559:66123)
at Hkr. (<REDACTED: user-file-path>/extension.js:559:39499)
at Ure.create (<REDACTED: user-file-path>/extension.js:744:7565)
at Ure. (<REDACTED: user-file-path>/extension.js:559:39499)
at Ure. (<REDACTED: user-file-path>/extension.js:14:389775)
at If.createProject (<REDACTED: user-file-path>/extension.js:849:16295)
at If. (<REDACTED: user-file-path>/extension.js:808:462681)
at If.p7c (<REDACTED: user-file-path>/extension.js:812:20672)
at If. (<REDACTED: user-file-path>/extension.js:14:389775)
at pw (<REDACTED: user-file-path>/extension.js:1690:17636)
at Object.kgt [as callback] (<REDACTED: user-file-path>/extension.js:1712:16219)
at e.runCommand (<REDACTED: user-file-path>/extension.js:1690:15449)
at Y0.h (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:32825)
The text was updated successfully, but these errors were encountered:
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 @rmraya, this error indicates TTK failed to install dependencies(Yeoman and SharePoint generator) locally for you, could you help attach more info for us to locate the root cause:
1> Open ttk output window and attach the error logs
2> Open ..fx\bin folder under your home directory and check whether the two packages are installed successfully(they're under yo and spGenerator folders respectively)
3> If answer of step 2 is no, try npm install yo@latest --prefix <HOME_DIRECTORY\.fx\bin\yo> --no-audit --global-style command to see whether the dependency can be installed successfully
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 Uko (<REDACTED: user-file-path>/extension.js:680:19767)
at Function.ensureLocalDependencies (<REDACTED: user-file-path>/extension.js:741:1243)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Function.doYeomanScaffold (<REDACTED: user-file-path>/extension.js:736:101192)
at Hkr.getTemplateInfos (<REDACTED: user-file-path>/extension.js:741:9841)
at Hkr.run (<REDACTED: user-file-path>/extension.js:559:66123)
at Hkr. (<REDACTED: user-file-path>/extension.js:559:39499)
at Ure.create (<REDACTED: user-file-path>/extension.js:744:7565)
at Ure. (<REDACTED: user-file-path>/extension.js:559:39499)
at Ure. (<REDACTED: user-file-path>/extension.js:14:389775)
at If.createProject (<REDACTED: user-file-path>/extension.js:849:16295)
at If. (<REDACTED: user-file-path>/extension.js:808:462681)
at If.p7c (<REDACTED: user-file-path>/extension.js:812:20672)
at If. (<REDACTED: user-file-path>/extension.js:14:389775)
at pw (<REDACTED: user-file-path>/extension.js:1690:17636)
at Object.kgt [as callback] (<REDACTED: user-file-path>/extension.js:1712:16219)
at e.runCommand (<REDACTED: user-file-path>/extension.js:1690:15449)
at Y0.h (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:114:32825)
The text was updated successfully, but these errors were encountered: