# Installer.js consider using npm flag --engine-strict

**URL:** <https://discourse.nodered.org/t/installer-js-consider-using-npm-flag-engine-strict/43261>\
**Category:** Feature Requests\
**Created:** [27 March 2021 07:05 UTC](https://discourse.nodered.org/t/installer-js-consider-using-npm-flag-engine-strict/43261 "2021-03-27T07:05:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nileio](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nileio/32/9444_2.png) [@nileio](https://discourse.nodered.org/u/nileio)\
**Post date:** [27 March 2021 07:05 UTC](https://discourse.nodered.org/t/installer-js-consider-using-npm-flag-engine-strict/43261/1 "2021-03-27T07:05:07Z")

</div>

when installing nodes using the Pallette Manager, I recommend that we add the `--engine-strict` flag to the `npm install` command in order to respect the "engines" section found in `package.json` and fail to install any node that depends on certain nodejs version.

I realised that the latest docker image nodejs version is 10.23.2 , and I depend on functions found in later versions of nodejs. My dev environment node version is 12.18.3

by using `--engine-strict` npm will refuse to install the node if it does not meet the node version requirements, rather than only show a warning message.

---

<div class="post-metadata">

**Author:** ![nileio](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nileio/32/9444_2.png) [@nileio](https://discourse.nodered.org/u/nileio)\
**Post date:** [29 April 2021 13:47 UTC](https://discourse.nodered.org/t/installer-js-consider-using-npm-flag-engine-strict/43261/2 "2021-04-29T13:47:11Z")

</div>

[PR](https://github.com/node-red/node-red/pull/2965/) merged

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [28 June 2021 13:47 UTC](https://discourse.nodered.org/t/installer-js-consider-using-npm-flag-engine-strict/43261/3 "2021-06-28T13:47:45Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
