KB Article #182871
Axway-cli on Windows: Error: Cannot find module '../build/Release/keytar.node
Problem
Facing an issue while installing axway-cli on Windows. Error: Cannot find module '../build/Release/keytar.node
Full error:
Error: Cannot find module '../build/Release/keytar.node' Require stack: - c:\dev\js\nodejs\node_modules\axway\node_modules\keytar\lib\keytar.js - c:\dev\js\nodejs\node_modules\axway\node_modules\@axway\amplify-sdk\dist\stores\secure-store.js - c:\dev\js\nodejs\node_modules\axway\node_modules\@axway\amplify-sdk\dist\auth.js - c:\dev\js\nodejs\node_modules\axway\node_modules\@axway\amplify-sdk\dist\amplify-sdk.js - c:\dev\js\nodejs\node_modules\axway\node_modules\@axway\amplify-sdk\dist\index.js - c:\dev\js\nodejs\node_modules\axway\node_modules\@axway\amplify-cli-utils\dist\index.js - c:\dev\js\nodejs\node_modules\axway\dist\main.js - c:\dev\js\nodejs\node_modules\axway\bin\axway
Path may be different for your system.
Resolution
Root cause: incomplete installation -> the "build" folder is missing from the installation path.
Workaround: delete the axway npm folder and run this command "npm install -g axway --unsafe-perm".