Git Product home page Git Product logo

Comments (2)

brianantonelli avatar brianantonelli commented on May 28, 2024

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.

galadriel2143 avatar galadriel2143 commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.