Well, no, you don’t, because if you did, the compiler wouldn’t be complaining about
fatal error: libplatform/libplatform.h: No such file or directory
That’s not how you upgrade a single package.
Perhaps Kali doesn’t ship with a new enough version of nodejs-dev; if so, you’ll need to raise that on a Kali Linux-related support channel to obtain guidance on how to resolve that issue.