How to check the compatibility between the SPFx version and the Node.js version
The SharePoint Framework (SPFx) is a client-side development platform used to develop web parts and extensions for SharePoint. The SharePoint Framework (SPFx) is compatible with the Node.js versions. Existing SPFx solutions may have different SPFx versions as compared to the current solutions. To make the SPFx solution run, Node.js is required, and in this blog, I am sharing steps to check the compatible node module for SPFx.
Find the SPFx version from the solution:
- Open the project solution and navigate to the "package.json" file.
- In package.json file you will find "@microsoft/sp-core-library" key and value of this particular key is the version of the SPFx.
Ex: "@microsoft/sp-core-library": "1.14.0"
Another way to find the SPFx version is by command, open the command prompt and run the command mentioned below:
npm ls -g --depth=0 @microsoft/generator-sharepoint
Now we have the SPFx version and using the SPFx version, we can quickly find the supported Node.js version. Microsoft provides us the list of compatible version of Node.js with the SPFx version. See the version compatibility matrix below:
SPFx | Node.js (LTS) | NPM | TypeScript | React |
---|---|---|---|---|
1.17.3 | v16.13+ | v5, v6, v7, v8 | v4.5 | v17.0.1 |
1.17.2 | v16.13+ | v5, v6, v7, v8 | v4.5 | v17.0.1 |
1.17.1 | v16.13+ | v5, v6, v7, v8 | v4.5 | v17.0.1 |
1.17.0 | v16.13+ | v5, v6, v7, v8 | v4.5 | v17.0.1 |
1.16.1 | v16.13+ | v5, v6, v7, v8 | v4.5 | v17.0.1 |
1.16.0 | v16.13+ | v5, v6, v7, v8 | v4.5 | v17.0.1 |
1.15.2 | v12, v14, v16 | v5, v6, v7, v8 | v4.5 | v16.13.1 |
1.15.0 | v12, v14, v16 | v5, v6, v7, v8 | v4.5 | v16.13.1 |
1.14.0 | v12, v14 | v5, v6 | v3.9 | v16.13.1 |
1.13.1 | v12, v14 | v5, v6 | v3.9 | v16.13.1 |
1.13.0 | v12, v14 | v5, v6 | v3.9 | v16.13.1 |
1.12.1 | v10, v12, v14 | v5, v6 | v3.7 | v16.9.0 |
1.11.0 | v10 | v5, v6 | v3.3 | v16.8.5 |
1.10.0 | v8, v10 | v5, v6 | v3.3 | v16.8.5 |
1.9.1 | v8, v10 | v5, v6 | v2.9 | v16.8.5 |
1.8.2 | v8, v10 | v5, v6 | v2.9 | v16.7.0 |
1.8.1 | v8 | v5, v6 | v2.7, v2.9, v3 | v16.7.0 |
1.8.0 | v8 | v5, v6 | v2.7, v2.9, v3 | v16.7.0 |
1.7.1 | v8 | v5, v6 | v2.4 | v16.3.2 |
1.7.0 | v8 | v5, v6 | v2.4 | v16.3.2 |
1.6.0 | v6, v8 | v3 (w/ Node.js 6), v5 (w/ Node.js 8) | v2.4 | v15 |
1.5.1 | v6, v8 | v3 (w/ Node.js 6), v5 (w/ Node.js 8) | v2.4 | v15 |
1.5.0 | v6, v8 | v3 (w/ Node.js 6), v5 (w/ Node.js 8) | v2.4 | v15 |
1.4.1 | v6, v8 | v3, v4 | v2.4 | v15 |
1.4.0 | v6 | v3, v4 | v2.4 | v15 |
1.3.0 | v6 | v3, v4 | v2.4 | v15 |
1.1.0 | v6 | v3, v4 | v2.4 | v15 |
1.0.0 | v6 | v3 | v2.4 | v15 |
Comments
Post a Comment