The Zurich release has arrived! Interested in new features and functionalities? Click here for more

ServiceNow IDE Unable to Install Any Dependencies

tootonebojangle
Tera Contributor

Hi everyone, I was excited to play around with the ServiceNow IDE on a PDI of Yokohama and whenever I create a new application it fails to find the servicenow/sdk package and fails to install dependencies of any version from package.json.

Because of this it cannot recognize any library related to the sdk and renders and builds or development useless.

I cannot even run the automatically generated test application. 

Any idea what is causing and why it fails to install any dependencies? This is a fresh PDI that I have restarted/refreshed several times.

1 REPLY 1

M Iftikhar
Mega Sage

 

Hi @tootonebojangle ,

The errors happen because packages like @servicenow/sdk are private and not available on the public npm registry. Even in the Yokohama IDE, npm needs to download them from ServiceNow’s registry over the internet. If your network blocks access, or the IDE cannot reach the registry, you may see errors including CORS etc and the installation fails.

 

Steps To fix this:

  1. Set npm to ServiceNow’s registry:

npm config set registry https://registry.servicenow.com/
  1. Clear npm cache:

npm cache clean --force
  1. Install dependencies:

npm install

Make sure your network/firewall allows access to ServiceNow’s registry URLs. After this, the IDE should recognize the packages and allow you to build/run your test app.

 

For detailed guidance, refer to the official documentation on using a private npm registry in the ServiceNow IDE: https://www.servicenow.com/docs/bundle/yokohama-application-development/page/build/servicenow-ide/ta...


Thanks & Regards, 
Muhammad Iftikhar 

If my response helped, please mark it as the accepted solution so others can benefit as well.