npm i -g @microsoft/generator-sharepoint@latest not installing latest version
Thank you for reporting an issue or suggesting an enhancement. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you.
Category
- [ ] Question
- [ ] Typo
- [* ] Bug
- [ ] Enhancement / Suggestion
- [ ] Additional article idea
Expected or Desired Behavior
Running npm i -g @microsoft/generator-sharepoint@latest and then creating a new project using yo @microsoft/sharepoint I'd expect to see the latest RC0 release.
The cmd console is running as an Administrator
Observed Behavior
Opening package.json I see the following dependencies
"dependencies": {
"@microsoft/sp-client-base": "~0.2.0",
"@microsoft/sp-client-preview": "~0.2.0",
"office-ui-fabric-react": "0.36.0",
"react": "0.14.8",
"react-dom": "0.14.8"
},
"devDependencies": {
"@microsoft/sp-build-web": "~0.5.0",
"@microsoft/sp-module-interfaces": "~0.2.0",
"@microsoft/sp-webpart-workbench": "~0.2.0",
"gulp": "~3.9.1"
},
These are not the dependencies listed in https://github.com/SharePoint/sp-dev-docs/wiki/Release-Notes-RC0
Steps to Reproduce
Run npm i -g @microsoft/generator-sharepoint@latest and then yo @microsoft/sharepoint
Can you try uninstalling the generator and then installing it?
npm uninstall @microsoft/generator-sharepoint -g
npm install @microsoft/generator-sharepoint -g
Thanks, I had tried that, but it didn't work.
I had to do a npm cache clean which solved the problem
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues