Giter Site home page Giter Site logo

Comments (7)

gmemstr avatar gmemstr commented on July 25, 2024

@kpurdon Interesting - I have not been able to reproduce this myself with the following configuration:

version: 2.1

orbs:
  node: circleci/[email protected]

jobs:
  build:
    docker:
      - image: cimg/base:stable
    steps:
      - node/install:
          node-version: 12.18.1

workflows:
  test:
    jobs:
      - build

Would you be able to share your configuration, or a minimal version that demonstrates this issue?

from node-orb.

dlqqq avatar dlqqq commented on July 25, 2024

Also cannot install node, but I'm getting a different error message. Here's my circle CI config:

version: 2.1
orbs:
  node: circleci/[email protected]

jobs:
  pre-build:
    docker:
      - image: circleci/node:latest
    steps:
      - node/install
      - node/install-packages
      - run:
          name: version check
          command: |
            node --version
            npm -v
  build:
    docker:
      - image: circleci/node:latest
    steps:
      - run: echo 'haha hehe XD'

workflows:
  linux-build:
    jobs:
      - pre-build
      - build:
          requires:
            - pre-build

and the error generated when I call node/install:

/bin/bash: -c: line 16: conditional binary operator expected

Exited with code exit status 2
CircleCI received exit code 2

The full error log for the above is located here.

from node-orb.

dlqqq avatar dlqqq commented on July 25, 2024

Wait, sorry, I just realized that I was using the node3 orb. Whoops. When I use the node4 orb I actually don't get any error. The above comment is not relevant to this issue and I am unable to reproduce it. I'll leave it there for anybody who gets a similar output and needs help.

from node-orb.

gmemstr avatar gmemstr commented on July 25, 2024

Since this has been open for > 1 month and I haven't been able to reproduce the original issue, I'm going to go ahead and mark this as closed.

from node-orb.

paulRbr avatar paulRbr commented on July 25, 2024

Hello, This issue is still ongoing with v4.4.0 of this orb.

See this very simple reproducible commit and the failing logs:

Latest version of NPM is 7.14.0
Something went wrong; the specified version of NPM could not be installed

Exited with code exit status 1

from node-orb.

colepeters avatar colepeters commented on July 25, 2024

@gmemstr Any update on this? I'm also experiencing this on 4.7.0. Using install-npm: false does bypass the error, but this is problematic as I need to install specific version of npm.

Edit: my workaround is as follows, but hoping this can be fixed!

- node/install:
    node-version: '14.15.1'
    install-npm: false

- run:
    name: Install npm 7
    command: npm install npm@7

from node-orb.

mattbrictson avatar mattbrictson commented on July 25, 2024

I'm also running into this. Here is a failing build: https://app.circleci.com/pipelines/github/mattbrictson/rails-new/650/workflows/ca412ab5-f972-4b4f-947d-fd903dbd3bf0/jobs/1325?invite=true#step-103-47

Latest version of NPM is 8.1.4
Something went wrong; the specified version of NPM could not be installed

Relevant config:

orbs:
  node: circleci/[email protected]
- node/install:
    lts: true
    install-yarn: true

As others have mentioned, adding install-npm: false is a workaround.

from node-orb.

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.