SPFx 1.23 Migration: Workaround when M365 CLI installation is blocked #10873
shirishmawande
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While working on an SPFx 1.23 migration, I ran into an issue installing the Microsoft 365 CLI (@pnp/cli-microsoft365) package. The installation was failing because a transitive dependency (protobufjs@7.5.4) could not be downloaded from our enterprise package registry and was returning a 403 error.
Since the SPFx upgrade guidance recommends using the M365 CLI upgrade commands, I wanted to share the approach that eventually worked for me and see if others have encountered similar issues.
What I Tried
Unfortunately, this approach did not resolve the installation issue.
What Worked
After that, I was able to use the M365 CLI commands and continue the SPFx 1.23 migration.
Question
Has anyone else encountered similar dependency restrictions while installing the M365 CLI during SPFx migrations?
Are there alternative approaches or recommended practices for handling this scenario?
Beta Was this translation helpful? Give feedback.
All reactions