
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2021 01:14 PM
I've went through the steps of installing the ServiceNow CLI, but get this error when I try to scaffold a new UI component.
Command: snc ui-component project --name now-experience-dashboard --description "My First NXF component built at CreatorCon"
Error: Cannot find module 'keytar'
Require stack:
- ~/.snc/.extensions/ui-component/node_modules/@servicenow/cli-glide/connection/auth/credential-manager/keytar-synthesizer.js
I'm running macOs Catalina
I'm running nodeJs version 12.19.0.
I see a version discrepancy with the SNC CLI. The lab says the current version should be 19.0.0, however the command "snc version" shows that I have version 1.1.0. I just downloaded and installed today, so I'm pretty sure I have the latest version.
Thanks for any help!
Ryan
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2021 06:23 AM
I found an answer in an older community post.
Can simply install the keytar package to resolve.
npm i keytar
But now I have a new error. It seems this lab is more of an exercise in using Now Community. 😄
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2021 07:18 PM
Hi All,
I had this issue as well when updating the lab from last year's. I had node ~14 already installed on my machine and I tried to go down the rabbit hole of installing keytar / downgrading webpack etc because I had similar errors. Don't bother.
I know the docs say "Node.js version 12.16.1 or greater" This is just wrong. They obviously never tested with "greater" versions of node.
Please use node version 12!
ServiceNow CLI needs a very specific version of Node. That is why I made particular notes in the first exercise on how to setup and use nvm.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2021 07:48 AM
I'm on an older Mac (2014), this is what I had to do
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2021 07:39 PM
Oh I see the confusion with the version numbers. The version of ui-component is 19.0.0 however the version of ServiceNow CLI is 1.0.0
When updating this lab for 21 it was a fresh install on my personal macbook so that I was starting at hopefully a similar environment setting to most people taking the lab.
All I can say is I can't believe they changed the command name from the previous (now-cli) I mean that's not confusing for people already using it‽‽‽

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2021 12:15 PM
Yea, changing the command adds a bit of confusion, especially when you're researching older community posts for solutions.
I also noticed that there seemed to a change in direction about installing it. Previously was installed directly from npm, which was nice, but now it's download with three versions (mac, windows, linux) and you have to run a stand-alone installer. Why?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2021 10:36 AM
I haven't been able to progress with the cli at all because of this error. I've tried installing both a local copy of the servicenow cli and keytar. Using the recommended version of Node (12.16.1). When I try
snc ui-component project
I still get
Error: Cannot find module 'keytar'
Are there any other solutions that I might try?
Running OSX Big Sur 11.3 with zsh shell