Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug report: SPFx.LatestPackageInstallFailed #12754

Closed
rmraya opened this issue Nov 19, 2024 · 3 comments
Closed

bug report: SPFx.LatestPackageInstallFailed #12754

rmraya opened this issue Nov 19, 2024 · 3 comments
Assignees
Labels
needs more info Need user to provide more info TA:E2E Team Area: E2E

Comments

@rmraya
Copy link

rmraya commented Nov 19, 2024

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)

Copy link
Contributor

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.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Nov 19, 2024
@adashen adashen added investigating TA:E2E Team Area: E2E labels Nov 20, 2024
@HuihuiWu-Microsoft
Copy link
Contributor

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

@HuihuiWu-Microsoft HuihuiWu-Microsoft added needs more info Need user to provide more info and removed investigating needs attention This issue needs the attention of a contributor. labels Nov 20, 2024
@rmraya
Copy link
Author

rmraya commented Nov 20, 2024

Solved by downgrading Node. Current LTS version of Node should be supported.

@rmraya rmraya closed this as completed Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Need user to provide more info TA:E2E Team Area: E2E
Projects
None yet
Development

No branches or pull requests

3 participants