Error: Cannot find module '../build/Release/keytar.node'

Tommy Jensen
Giga Guru

I am trying to setup the CLI for component development and get the infamous error "keytar module" not found.

Can someone tell me the exact solution to this problem ?

Running on MacOs Monterey 12.6 (M2)
Node: 12.16.1
NPM: 6.13.4

SNC-CLI 1.1.0 from the store.


I am using NVM as Node js manager and HAVE switch to 12.16.1 before I installed the cli and added the extension.

7 REPLIES 7

Tommy Jensen
Giga Guru

I created an idea, please vote if you would like thge CLI to be updated faster to support current Nodejs versions.

https://support.servicenow.com/now?id=view_idea&sysparm_idea_id=7d34d9bddb2b9dd0e3a1c4be1396190e&sys...

Gary Fawcett1
Tera Guru

Upvoted, lets see what happens?

j_15
Tera Expert

I was able to get rid of this issue by installing the CLI via npm:

 

npm i -g @Servicenow/cli