question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npx @backstage/create-app - [Errno 2] No such file or directory: 'install'

See original GitHub issue

Expected Behavior

Install backstage

Actual Behavior

npx @backstage/create-app breaks after selection of the database.

? Enter a name for the app [required] backstage-app
? Select database for the backend [required] SQLite

Creating the app...

 Checking if the directory is available:
  checking      backstage-app βœ”

 Creating a temporary app directory:
  creating      temporary directory βœ”

 Preparing files:
  copying       .dockerignore βœ”
  copying       .eslintrc.js βœ”
  templating    .gitignore.hbs βœ”
  copying       .prettierignore βœ”
  copying       README.md βœ”
  copying       app-config.production.yaml βœ”
  templating    app-config.yaml.hbs βœ”
  templating    backstage.json.hbs βœ”
  templating    catalog-info.yaml.hbs βœ”
  copying       lerna.json βœ”
  templating    package.json.hbs βœ”
  copying       tsconfig.json βœ”
  copying       .eslintrc.js βœ”
  copying       Dockerfile βœ”
  copying       README.md βœ”
  templating    package.json.hbs βœ”
  copying       index.test.ts βœ”
  copying       index.ts βœ”
  copying       types.ts βœ”
  copying       app.ts βœ”
  copying       auth.ts βœ”
  copying       catalog.ts βœ”
  copying       proxy.ts βœ”
  copying       scaffolder.ts βœ”
  templating    search.ts.hbs βœ”
  copying       techdocs.ts βœ”
  copying       .eslintrc.js βœ”
  copying       cypress.json βœ”
  templating    package.json.hbs βœ”
  copying       android-chrome-192x192.png βœ”
  copying       apple-touch-icon.png βœ”
  copying       favicon-16x16.png βœ”
  copying       favicon-32x32.png βœ”
  copying       favicon.ico βœ”
  copying       index.html βœ”
  copying       manifest.json βœ”
  copying       robots.txt βœ”
  copying       safari-pinned-tab.svg βœ”
  copying       .eslintrc.json βœ”
  copying       app.js βœ”
  copying       App.tsx βœ”
  copying       apis.ts βœ”
  copying       index.tsx βœ”
  copying       setupTests.ts βœ”
  copying       App.test.tsx βœ”
  copying       LogoFull.tsx βœ”
  copying       LogoIcon.tsx βœ”
  copying       Root.tsx βœ”
  copying       index.ts βœ”
  copying       EntityPage.tsx βœ”
  copying       SearchPage.tsx βœ”

 Moving to final location:
  moving        backstage-app βœ”

 Building the app:
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'install'
  executing     yarn install βœ–

Error: Could not execute command yarn install

It seems that something went wrong when creating the app πŸ€”

πŸ”₯  Failed to create app!

Steps to Reproduce

execute npx @backstage/create-app

Context

trying to install Backstage

Your Environment

Ubuntu on WSL2 Windows 11

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
sp0tt13commented, Apr 26, 2022

It seems yarn is the problem somehow. I had followed the instructions on the backstage.io website, which sent me to https://classic.yarnpkg.com/en/docs/install. After installing yarn, it gave me what seemed to be the latest version; $ npm info yarn version 1.22.18 $ yarn --version 0.32+git The error in my previous message seemed to be a yarn error, so I looked for an alternative and found https://dev.to/bonstine/installing-yarn-on-wsl-38p2 which suggested I install yarn with curl -o- -L https://yarnpkg.com/install.sh | bash After installing that way, I now get yarn --version giving 1.22.18 instead of 0.32+git, but more importantly, it is building the my-backstage-app without error.

Post Update: This explains the situation a bit better: https://stackoverflow.com/questions/53471063/yarn-error-there-are-no-scenarios-must-have-at-least-one

0reactions
blabaschincommented, May 6, 2022

I had the same issues. It was a headache. I had to uninstall all of my yarn as above but in addition I had to brew install python, cmake, and gcc. I suggest someone looks into adding these to the instructions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Yarn install command error No such file or directory: 'install'
I had the same issue on Ubuntu 17.04. This solution worked for me: sudo apt remove cmdtest sudo apt remove yarn curl -sSΒ ......
Read more >
Create an App Β· Backstage Software Catalog and Developer ...
Backstage provides a utility for creating new apps. It guides you through the initial setup of selecting the name of the app and...
Read more >
env: python: no such file or directory make: *** [release ...
Solved it with installing nvm with the right yarn and node version, which was eventually 14.5.5 (not the one mentioned in the package.json)....
Read more >
yarn install: ERROR: [Errno 2] No such file or directory
yarn install: ERROR: [Errno 2] No such file or directory: 'install' ... main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt-getΒ ...
Read more >
"/usr/bin/env: 'node': No such file or directory" even though it is ...
Usually this is a simple naming problem, when you install from a package manager your bin file may be called nodejs so you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found