Comments (2)
You received that error since you're version of Node is too old. The encryption/keychain module we use, clortho, requires Node 4 or higher.
from alks-cli.
Example with Docker to make the problem more clear:
> docker build -f Dockerfile .
Sending build context to Docker daemon 31.45MB
Step 1/3 : FROM node:8.0
---> 065e283f68bd
Step 2/3 : RUN npm install alks
---> Using cache
---> d411f1d74aff
Step 3/3 : ENTRYPOINT ["node_modules/.bin/alks"]
---> Using cache
---> 24c0c1c01725
Successfully built 24c0c1c01725
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
D:\alks-dl
> docker build -f Dockerfile.yarn .
Sending build context to Docker daemon 31.45MB
Step 1/3 : FROM node:8.0
---> 065e283f68bd
Step 2/3 : RUN yarn add alks
---> Running in facd432dcb34
yarn add v0.24.6
info No lockfile found.
[1/4] Resolving packages...
warning alks > [email protected]: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
[2/4] Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version "^4.0.0".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
The command '/bin/sh -c yarn add alks' returned a non-zero code: 1
D:\alks-dl
> cat Dockerfile
FROM node:8.0
RUN npm install alks
ENTRYPOINT ["node_modules/.bin/alks"]
D:\alks-dl
> cat .\Dockerfile.yarn
FROM node:8.0
RUN yarn add alks
ENTRYPOINT ["node_modules/.bin/alks"]
D:\alks-dl
>
from alks-cli.
Related Issues (20)
- Handle 'login 2fa' Intelligently
- Please fix the engine section in cox's port of clortho package to >=4
- [FEATURE]: Support to use alks-cli as an external process with AWS CLI HOT 5
- Feature Request: Better errors when refresh token fails HOT 2
- Windows Users using GitBash Need Export Not Set HOT 2
- Unable to authenticate, need: Basic realm="GitHub" HOT 9
- [FEATURE] Print OAuth Link to STDOUT HOT 1
- [BUG] Create Role function does not support Machine Identities HOT 1
- FEATURE REQUEST: Print human readable names in `alks sessions open` output
- Character Escaping
- [FEATURE] Make it easier to find a specific account in a list HOT 1
- Eliminate npm "update available" message
- Defautl / Custom Session Times HOT 1
- 31 high vulnerabilities in 3.7.3
- Make Login2fa non-interactive
- node 16 support
- Feature Request - add support for local configuration files (that override the user-level defaults) HOT 1
- Unhaldled error when trying to configure profile in WSL
- `alks sessions console` opens a new browser instance
- [feature] extend `alks sessions open` to use AWS profiles
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alks-cli.