Current node version4/22/2023 ![]() ![]() "start" : "npm run check-version & npm run start-server", "check-version" : "node checkVersion.js", If (!semver.satisfies(process.version, nodeVersion)). Compare installed NodeJs version with required NodeJs version. 'use strict' Ĭonst engines = require('./package').engines For that, I wrote a code which can be run before starting the Server using npm run start script.įound below code helpful from this question. I wanted to know the current NodeJs version I am going to use to run my server at runtime. I had the similar issue with my codebase.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |