Troubleshooting
This page describes the causes of and resolutions for common Docusign CLI errors.
Installation, authentication, and permission errors
EPERM: operation not permitted error when running scaffold command
Description
When you attempt to set up a workspace with the scaffold command, the CLI returns this error:
Error creating scaffold: EPERM: operation not permitted, mkdir \[directory path\]
Cause
The CLI does not have permission to write to the directory specified in the scaffold command, or to the current directory if the command did not specify a directory.
Recommendations
Do either of the following to create the workspace in a directory that the CLI can write to:
- If you ran the command without specifying a directory, change to a directory that the CLI can write to, and run the command again.
- Include a directory path in the
\-woption. For example:
ds scaffold \-w ..\\..\\workspaces\\my\_new\_workspace \-p my\_new\_project
npm error EACCESS: permission denied
Description
When attempting to install the Docusign CLI for the first time, even if you have admin permissions and use the sudo version of the command, you receive this error:
npm error Error: EACCES: permission denied, mkdir '/usr/local/lib/node\_modules/@docusign'
Cause
npm cannot write to the specified directory, even with admin privileges.
Recommendation
Configure npm to install global packages under your user account. Below is an example bash script:
If the installation succeeds, the CLI help output lists the available commands.
Package is deprecated error
Description
When attempting to run the ds auth login command to authenticate, you repeatedly receive this message:
DEPRECATED \- This package (@docusign/agreement-cli) is deprecated and no longer receiving updates. Please use @docusign.cli instead: https\://www\.npmjs.com/package/@docusign/cli
Cause
The CLI package version that you have installed is no longer supported.
Recommendation
Run these commands:
Then retry the authentication command.
Uninstalling and reinstalling will not affect any existing catalogs, manifests, training and testing documents in your local workspace.
Repeated session expired messages
Description
When running any command, you repeatedly receive this message, and running the ds auth login command to authenticate does not resolve the issue:
Auth Token: Your session has expired Please run: Docusign auth login
Cause
The Docusign CLI config file contains invalid cached values.
Recommendation
Run this command:
Then run this command to authenticate against the environment that you’re working with:
HTTP Error 403: Forbidden message when trying to upload
Description
When attempting to upload a package, you receive this error:
HTTP Error 403: Forbidden Access forbidden. Your token may not have the required permissions.
Cause
The Docusign account that you’ve authenticated with does not have permissions for one or more features associated with the Docusign CLI.
Recommendation
Contact Docusign Support for assistance with adding the required permissions to your account.
Manifest validation errors
Before uploading your package to Agreement Manager, the CLI validates your manifest. If the manifest is misconfigured, the upload is blocked and an error message is returned. The following table lists common validation errors, their causes, and how to resolve them.
Reprocessing errors
These errors may be displayed if a reprocess command cannot be executed successfully:
Frequently asked questions
What should I do if I get an “EPERM: operation not permitted” error when running the scaffold command?
Change to a directory that the CLI has permission to write to and rerun the command, or specify a valid directory path using the \-w option (for example, ds scaffold \-w ..\\..\\workspaces\\my\_new\_workspace \-p my\_new\_project). See Set up your workspace for more information about the scaffold command.
What is the solution if I keep seeing messages stating that @docusign/agreement-cli is deprecated?
Uninstall the deprecated package using npm uninstall \-g @docusign/agreement-cli and install the updated package with npm i \-g @docusign/cli. See Update to a new version for more information.
How do I resolve a repeated “session expired” message that isn’t fixed by logging in?
Remove the local configuration file by running rm \~/.docusign/config.json, then run ds auth login to re-authenticate against your environment. See Authenticate for more information about the auth login command.
What are the limits for custom fields and custom agreement types in a manifest?
A manifest allows up to 300 custom fields and up to 200 custom agreement types. Additionally, no more than 50 total custom fields and custom agreement types combined (and no more than 15 custom agreement types) can have AI extractions enabled. See Manifest reference for more information about limits.
Next steps
- Explore the AI tools available to help you build and manage your Agreement Manager configuration more efficiently.
- Get an overview of common Docusign CLI implementation scenarios.