sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

npm i -g @microsoft/generator-sharepoint@latest not installing latest version

Open statto1974 opened this issue 9 years ago • 3 comments

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

statto1974 avatar Jan 18 '17 11:01 statto1974

Can you try uninstalling the generator and then installing it?

npm uninstall @microsoft/generator-sharepoint -g
npm install @microsoft/generator-sharepoint -g

chakkaradeep avatar Jan 18 '17 18:01 chakkaradeep

Thanks, I had tried that, but it didn't work.

I had to do a npm cache clean which solved the problem

statto1974 avatar Jan 18 '17 18:01 statto1974

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

msft-github-bot avatar Jan 30 '20 00:01 msft-github-bot