When I install @microsoft/generator-sharepoint, I get below error. Kindly note that my node version is v6.11.0 and npm version is 5.0.3
What can be the issue.
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityMake sure that you have the latest version of NodeJS. You can check the latest version using
node -v
Follow the full procedure here: SharePoint Framework - Set up your SharePoint client-side web part development environment
SPFx build pipeline does NOT currently support npm v5.x, so you'll need to use either v3 or v4. At the time of the writing, NodeJS LTS version (v6.11.0) installs npm v3.10.10.
You can downgrade to older npm version with following command npm install -g npm@3
.
You can check below SPFx article for complete details