I am setting up our SharePoint framework development environment inside Windows 7 x64, as mentioned in this video:
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment
I successfully installed Node.js + VS Code, and now I am at the stage of installing the yo package, using this command:
npm install -g yo gulp
but I got error "Your yo version is outdated", as shown below:
V Global configuration file is valid
V NODE_PATH matches the npm root
V Node.js version
V No .bowerrc file in home directory
V No .yo-rc.json file in home directory
× yo version
Your yo version is outdated.
Upgrade to the latest version by running:
npm install -g yo@latest
V npm version
Found potential issues on your machine :(
+ [email protected]
+ [email protected]
added 787 packages in 229.024s
So I ran this command to upgrade yo:
npm install -g yo@latest
but I got the same error:
Running sanity checks on your system
V Global configuration file is valid
V NODE_PATH matches the npm root
V Node.js version
V No .bowerrc file in home directory
V No .yo-rc.json file in home directory
× yo version
Your yo version is outdated.
Upgrade to the latest version by running:
npm install -g yo@latest
V npm version
Found potential issues on your machine :(
+ [email protected]
updated 1 package in 38.439s
I also tried running these commands:
npm rm -g yo
npm install -g yo
but they did not fix anything.
And when I wanted to open yo, as follows, I got another error:
PS C:\Users\*****> yo @microsoft/sharepoint
yo : The term 'yo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ yo @microsoft/sharepoint
+ ~~
+ CategoryInfo : ObjectNotFound: (yo:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Can anyone please advise?