ServiceNow IDE Unable to Install Any Dependencies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2025 09:13 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago - last edited a week ago
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:
Set npm to ServiceNow’s registry:
npm config set registry https://registry.servicenow.com/
Clear npm cache:
npm cache clean --force
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.