CLI configuration error: "SNC is not found, please install SNC from store"

protege747
Tera Contributor

protege747_0-1731338166233.png



I am trying to create a component for UI Builder. I followed the guide on the Developer site but it keeps throwing this error: "SNC is not found, please install SNC from store."
From the screenshot attached, you will see that I have "snc" installed, as well as all the necessary extensions and packages.


I have a colleague who has a lower version of "UI-Component" that works without any issues, mine is "ui-component  v27.4.1" and he's is "ui-component v26.5.0". He downloaded it recently so maybe it is a bug with the new release but I am not sure.

5 REPLIES 5

Marc Mouries
ServiceNow Employee
ServiceNow Employee

@protege747 Are you by any chance running on a Mac with Apple Silicon? 

There has been updates in the latest version and it's more strict on format compliance in the now-ui.json file.

 

@Marc - I stumbled across this post yesterday as i'm having the exact same issue above.  Unable to create a component with UI Builder...same error.  

 

Macbook Pro - Sonoma

rdugger_0-1738249670363.png

 

Still looking for resolution...

Marc Mouries
ServiceNow Employee
ServiceNow Employee

I fixed the issue by following these steps ( I am on a Mac with Apple silicon)

 

Step 1: Ensure Node Version Compatibility

Ensure you are using Node.js version 22.

nvm install 22
nvm use 22

 

Step 2: Install npm 8.5.5

By default, Node.js v22 comes with npm version 10, so you need to explicitly install npm 8.5.5:

npm install -g npm@8.5.5

 

 

Rob Humphries
Tera Expert

Hi @Marc Mouries ,

 

I am also getting this error when running

 

$ snc ui-component project --name 'get-started-1'

 

I'm running on Windows with

Node v22.14.0

npm 8.5.5

snc 1.1.2

ui-component 27.4.1

 

My pdi is just upgraded to glide-xanadu-07-02-2024__patch6-01-29-2025

@servicenow/sn-builder-core 26.2.59

sn_cli_metadata 1.1.2

 

I'm also getting the same error when running

 

$ snc ui-component project --name 'get-started-1' --scope 'get_started_1' --offline true

 

Any help much appreciated