The 'npm audit' command should function by using an audit provider (which is an NPM remote registry), even if Xray is not configured. However, there might be cases where the audit command fails with a 403 or 404 error if the registry is not configured as expected.