Sp-dev-docs: This does not work with latest Node LTS version

Created on 12 Dec 2018  ·  4Comments  ·  Source: SharePoint/sp-dev-docs

While your link goes to the v8.x distro, the text basically says to install "NodeJS LTS version". The LTS version as of this post is 10.14.2.

With any version over 8, gulp commands generate the error:

Error: Your dev environment is running NodeJS version v10.14.2 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

Document Details

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

Most helpful comment

Any news about this issue? any progress? Thanks a lot

All 4 comments

Both 8 and 10 are LTS versions (https://github.com/nodejs/Release#release-schedule) getting active development at the moment. I've clarified the wording to note that only 8 is supported at this point.

Any news about this issue? any progress? Thanks a lot

Any idea how to make it work on NodeJS v10. I am also getting the same error.

C:SharePointsamplesListViewControlnode_modules@microsoftsp-build-commonlibSPBuildRig.js:24
throw new Error(Your dev environment is running NodeJS version ${process.version} which does
^

Error: Your dev environment is running NodeJS version v10.12.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 || >=10.13.0 <11.0.0
at SPWebBuildRig.initialize (C:\SharePoint\samples\ListViewControl\node_modules\@microsoft\sp-build-common\lib\SPBuildRig.js:24:19)
at SPWebBuildRig.initialize (C:\SharePoint\samples\ListViewControl\node_modules\@microsoft\sp-build-web\lib\SPWebBuildRig.js:14:15)
at Object.exports.initialize (C:\SharePoint\samples\ListViewControl\node_modules\@microsoft\sp-build-web\lib\index.js:22:17)
at Object. (C:SharePointsamplesListViewControlgulpfile.js:7:7)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)

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