When I executed “yo @microsoft/sharepoint” to generate a SharePoint extension, I got following error message
Attempt - 01
First I tried to uninstall and install SharePoint Framework Yeoman generator by executing following command
npm uninstall -g generator-@microsoft/generator-sharepoint
npm install -g @microsoft/generator-sharepoint
This could not resolve the issue
Attempt - 02
Tried uninstalling and installing both Gulp and Yeoman using following commands
npm uninstall -g gulp
npm uninstall –g yeoman
npm install -g yo gulp
Still the issue persisted
Attempt – 03 (Success!!)
- Uninstall Gulp and yeoman
npm uninstall -g gulp
npm uninstall –g yeoman
- Uninstall NodeJs
- Install NodeJS v6.11.5
- Install Gulp and Yeoman
npm install -g yo gulp
- Install Yeoman generator
npm install -g @microsoft/generator-sharepoint
That’s it.
No comments:
Post a Comment