Troubleshooting ServiceNow CLI errors
Import
·
May 12, 2023
·
article
Here are common problems you might come across with the ServiceNow CLI, along with the reasons behind them and suggestions on how to address them:
INSTANCE VERSION COULD NOT BE VALIDATED
- Reason: This issue arises when ServiceNow attempts to confirm the version of your instance. It does this by accessing the stats.do page. However, starting from the 'San Diego' version, access to stats.do is restricted to only the administrator account.
- Action: You can safely ignore it.
- Solution: On your development instance, you can set the system property glide.security.diag_txns_acl to false to allow access to non-Administrators.
NPM INSTALL ERRORS
And you see a message Can't find Python executable "python",
- Reason: This issue arises on Mac computers with the M1 (Apple silicon) chips.
- Action: Follow the steps below.
- Solution: Use either option 1 or 2 below
- Configure the out-of-the-box Terminal app
- Open Finder and navigate to the Application -> Utilities folder
- Select the Terminal app and select Duplicate.
- First, duplicate the Terminal and rename it to Terminal Rosetta.
- Type "⌘ + i" and check the box "Open with Rosetta".
- Use this terminal going forward
- Open Finder and navigate to the Application -> Utilities folder
- Use an alternate Terminal app like iTerm (https://iterm2.com/%29
- Configure the out-of-the-box Terminal app
Error npm ERR! gyp ERR! cwd /your_path/node_modules/node-sass
Unsupported Instance Version
- Reason: You're likely upgrade your ServiceNow instance and it no longer matches the version of the CLI
- Solution: Update the CLI:
- snc extension update --name ui-component
View original source
https://www.servicenow.com/community/next-experience-articles/troubleshooting-servicenow-cli-errors/ta-p/2464448
