Comments (7)
@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.
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.
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.
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.
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.
@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.
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)
- Allow upgrade of resource_class for orb jobs HOT 1
- Include include-branch-in-cache-key in run and test jobs
- `node/test`: Add support to store code coverage
- Cache dependencies by workflow instead of job HOT 1
- Support pnpm HOT 2
- Change log
- "max-workers" as a parameter or a step to check the size of resource class
- Upgrade Yarn Install Command to Berry HOT 3
- Install Job Fails - Out of sync HOT 1
- Node has issues installing. HOT 1
- Prevent nvm from falling back to building from source HOT 2
- Inability to install requested NodeJS version does not break the build
- May need to be able to pass http session type to the curl commands HOT 1
- Support Bun
- Latest container no longer includes `node-gyp`
- Node fails to download HOT 2
- Change `install-packages` `include-branch-in-cache-key` default to `false` HOT 1
- Caching fails if no lockfile exists HOT 3
- Cache created but ignored by default HOT 2
- install-yarn fails stating sudo command not found
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 node-orb.