Prior to cloning the substrate-front-end-template repo with tag "monthly-2022-02" I installed the following since I was building it from a Dockerfile using pre-built Docker image node:gallium-alpine:
- Yarn 1.22.19 (running
yarn --version
outputs1.22.19
). This was bundled with node:gallium-alpine pre-built Docker image. - Node.js LTS v16.18.1 (matching contents of .nvmrc that includes
lts/gallium
and since the CircleCI .circleci/config.yml file is using Node.js 16.14)
But it appeared as though the repository required Yarn 3.1.1 (hence why there is a .yarn folder containing .yarn/releases/yarn-3.1.1.cjs, package.json contains "packageManager": "[email protected]"
, and a file called .yarnrc.yml whose contents include:
nodeLinker: node-modules
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
yarnPath: .yarn/releases/yarn-3.1.1.cjs
But after you clone the repo and try to install dependencies with yarn
it outputs error:
Usage Error: Couldn't find the node_modules state file - running an install might help (findPackageLocation)