Unable to find orb with inline orb

nodejs
orbs

#1

I am getting the following error on a project:

`Cannot find orb 'node' looking for command named 'node/install-package-manager'`

I am following this example: https://circleci.com/docs/2.0/creating-orbs/#creating-inline-orbs to try and test an inline orb.

And my config.yml looks like this:

version: 2.1

orbs:
  node: circleci/node@0.0.7
  release-train:
    commands:
      install-dependencies:
        steps:
          - node/install-package-manager:
              yarn: true
          - node/with-cache:
              cache-key: 'yarn.lock'
              steps:
                - run:
                    name: Install Dependencies
                    command: yarn install
    jobs:
      create-release:
        docker:
          - image: circleci/node:9.6.1
        steps:
          - checkout
          - install-dependencies
          - run:
              name: Create Release
              command: echo crons/createRelease.js

Has anyone experienced this before?


#2

There is a bug in the example. I’ll look into fixing it, but in the mean time, you should be able to fix by adding an orbs stanza INSIDE of the release-train orb declaration and put the node orb there.


#3

That looks to have solved the issue. Thanks for letting me know!


#4

thank you, the docs example has been updated