I am trying to set up an environment for SPFX development. I tried to install the latest version of nodejs.

I installed latest version of nodejs 14.15.4 and automatically npm verion 6.14.11 installed.

Then installed "npm install -g yo gulp" successfully.But while installing "npm install -g @microsoft/generator-sharepoint" got below error:

C:\SPFX>npm install -g @microsoft/generator-sharepoint
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=0.10.0 <7"} (current: {"node":"14.15.4","npm":"6.14.11"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]

+ @microsoft/[email protected]
updated 1 package in 9.888s

Now if I try to create new SPFX project using command "yo @microsoft/sharepoint" then simply nothing is getting created inside the project folder.

Kindly help me to resolve this. Thanks in advance!

3 Answers 3


SPFX currently support Node.js 10.x and not supported Node.js 14.x, please uninstall the Node.js and reinstall Node.js 10.X version here:

Index of /dist/latest-v10.x/


You need the earlier version of Node.js, v14.x is not supported for SPFx. I've set up with v10.22 on my machine and it works.

For more information see MS Article Install Node js


Node.js v14.x is not supported for SharePoint Framework development.

You need to use version v10.x.x (if you're developing solutions for SharePoint Server 2019 or SharePoint Online - Recommended for your case

OR v8.x.x (if you're developing solutions for SharePoint Server 2016)

At this time, Node.js v14.x is the Active LTS version listed on the Node.js homepage as the default download. To download Node.js v10.x, use the Node.js > Downloads > Previous Releases page.

I will strongly recommend you to follow the Microsoft documentation given below to set up the development environment. This is very detailed and useful guide:

Set up your SharePoint Framework development environment

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.