Failing build on fresh install: "package.json doesn't seem to have been installed"
See original GitHub issueBug Description Yarn throws the following error on fresh install:
The project in /Users/furkan/src/create-eth-app/package.json doesn't seem to have been installed - running an install there might help
What I’ve tried so far:
npm cache clean
rm -rf node_modules
yarn install
(exits 0)- Deleting the yarn cache and running yarn install
Steps to Reproduce
yarn create eth-app my-eth-app
- Expect error
$ yarn create eth-app my-eth-app
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed
➤ YN0000: Done in 0s 84ms
Creating a new Ethereum-powered React app in /Users/furkan/src/create-eth-app/my-eth-app.
Downloading template files. This might take a moment.
Installing packages. This might take a couple of minutes.
Usage Error: The project in /Users/furkan/src/create-eth-app/package.json doesn't seem to have been installed - running an install there might help
$ yarn install [--json] [--immutable] [--immutable-cache] [--check-cache] [--inline-builds] [--mode #0]
Aborting installation.
yarnpkg install --cwd /Users/furkan/src/create-eth-app/my-eth-app has failed.
Expected Behavior It should build?
Additional Context Add any other context about the problem here (screenshots, whether the bug only occurs only in certain mobile/desktop/browser environments, etc.)
OS: macOS 12.1 (Intel)
yarn: 3.1.0
node: 17.3.1
npm: 8.3.0
commit: 89a9f219f210dde636e076fd2daa5882671e012b
terminal: iTerm2 3.4.14
user: no permission issues
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Yarn 2 init, add failing - Stack Overflow
You either don't have package.json or yarn.lock which confuses yarn if the package is added in the workspace or not.
Read more >Yarn 2 Failing to Install - Build Environment - CircleCI Discuss
Hi all, I'm attempting to upgrade to Yarn 2 and CircleCI appears to be failing to install the deps. I'm currently running things...
Read more >Error Codes | Yarn - Package Manager
A package build failed. This problem typically doesn't come from Yarn itself, and simply means that a package described as having build directives...
Read more >Common errors | npm Docs
Broken npm installation · On Mac or Linux, reinstall npm. · Windows: If you're on Windows and you have a broken installation, the...
Read more >Builds started failing after build image update - Support
I did try re-installing my dependencies locally, but I don't get this error, and yarn.lock doesn't get updated either. Here's the build log ......
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 Free
Top 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
try
touch yarn.lock
as a work around https://github.com/yarnpkg/berry/issues/625I am having exact same error right now on Windows. Any fix yet ?