Sp-dev-docs: Do you really support Node 10.X?

Created on 15 Jul 2020  Â·  6Comments  Â·  Source: SharePoint/sp-dev-docs

I originally setup my development environment a year or two back. Recently I was having issues, so I uninstalled Node and reinstalled the latest 10.X version following your instructions. I also uninstalled/installed GULP, YO, and
@microsoft/generator-sharepoint

When I attempted to use GULP, I received the following error:

"Your dev environment is running NodeJS version v10.21.0 which does not meet the requirements for running this tool. This tool requires a version of NodeJS that matches >=8.9.4 <9.0.0".

I found this reference where a user has the same issue and the response explains how to install multiple versions of Node: https://sharepoint.stackexchange.com/questions/255951/nodejs-not-compatible
https://github.com/coreybutler/nvm-windows/releases

After switching to version 8.9.4, I am able to use GULP and build my projects. Is this happening because my project is built on an older version of the SharePoint Framework?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Needs docs-comment

All 6 comments

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

Hi mkeysae2,

I am using V10.21.0 for SPFx web part development. It works well here.
image

Based on the doc, v8.x.x is for SharePoint Server 2016 and v10.x.x is for SPO.

I attach the test demo here, you may have a look.

Baker Kong
Microsoft SharePoint Community Support

Hi, yes this is because you are using an older version of SPFx. My recommendation would be to use the latest version of the SharePoint Framework. Also, if these are scenarios where you are working on different versions of SPFx, my recommendation would be to look into NVM so you can have different versions of node running on your machine.

Thank you for the comments. It makes sense now that this issue is because we are using an older version of SPFx. I am running NVM so I can switch between versions.

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

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

Was this page helpful?
0 / 5 - 0 ratings