npx @backstage/create-app - [Errno 2] No such file or directory: 'install'
See original GitHub issueExpected 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:
- Created a year ago
- Comments:8 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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.