CCL1043-K21: Error when scaffolding the component

Ryan Magsam1
Mega Guru

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

1 ACCEPTED SOLUTION

Ryan Magsam1
Mega Guru

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.  😄

View solution in original post

11 REPLIES 11

ThierryD1
Mega Expert

Hi,

I have also the same error.

For my part, I'm running Windows 10.

Node.js : v14.16.1 (in Set up your environment | ServiceNow Docs, it is indicated "Node.js version 12.16.1 or greater").

Like Ryan Magsam, I'm stuck.

Thanks for your help.

Thierry

 

I saw some of the linked packages in node warned me about being deprecated and not working after version 12.  You may need to use version manager (nvm) to install version 12 and use it instead of 14.

Ryan Magsam1
Mega Guru

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.  😄

Hi,

thanks a lot.

But the error is still present.