AppD Archive

Node.js client engine specification seems too restrictive

CommunityUser
Splunk Employee
Splunk Employee

The Node.js client specifies Node.js version >= 0.8.0 and <= 0.10.32. In package.json:

"engines": {
"node": ">=0.8.0 <=0.10.32"
},

Current version of node is 0.10.33, and npm install fails. Also enginestrict flag is used, further restricting the compatibility of the library.

https://www.npmjs.org/doc/files/package.json.html#enginestrict

0 Karma

Kyle_Furlong
Contributor

Hey bdjurkovic,

There are natively compiled components which depend on the exact version of Node.js that you are installing into. We typically roll out support for the latest versions each time we release a new version of our Node.js agent. We have workarounds to get the newest versions working that come out after we release a version of our agent. Please let me know if you'd like to implement one of these workflows in your deployment process. I would only suggest this if you are planning on always staying on the bleeding edge version of Node.

Best regards,

Kyle

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Hello, thanks for the feedback. Yes I think for development, at least, we would like to be able to work with later than supported Node version; if the workaroud isn't too complicated. Please let me know what the workflow is. Thanks!

0 Karma

Kyle_Furlong
Contributor

The simplest workaround is to fake your npm user agent:

npm config get user-agent

<user agent output here>

npm config set user-agent <modified user agent here>

The modification is to make the version the latest possible support by the appd package.

0 Karma
Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...