At some point, you may experience error message during installation of one or more modules. This document aims to assist in those problems.
Permission denied to mkdir
If you get an error message about permission being denied to create a directory (see below), you'll need to add the
--unsafe-perm=true flag to the above command.
Install failure with npm install
If you encounter the following error message (this is not an error on npm's side but rather ACLI's package manager),
Confirm that the package you're trying to install didn't fail to install.
- Open a terminal in
- Look through this directory for any empty directories.
- Remove any empty directories.
- Try installing the package again.
Keytar failed to install
If you encounter this error when trying,
amplify auth login -u <user> -p <password>
It's likely that keytar failed to install during the installation of ACLI. To fix this issue,
- Uninstall ACLI:
npm uninstall amplify -g
- Re-install ACLI using the
[sudo] npm i -g --unsafe-perm @axway/amplify-cli
- Try logging in again.
If you do not wish to install keytar, you can disable secure store and fallback to the file-based store by executing this command:
amplify config set auth.tokenStoreType file.