-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parcel runs a strange yarn command on startup, also fails on hawk #1923
Comments
Use |
Got it. Worked. Weird though where it took that package name from. |
I am having the exact same problem, but it was not happening before. It only happens on my CI environment, where parcel tries to install stuff it should not try to. |
The purpose is to install missing requirements automatically so you don't have to manually install them one by one as error happens |
Hello @Hoishin , I think that an easy solution for my case would be to specify to use npm instead of yarn. Several of my dependencies are private, and I have npm correctly configured to access them, so using yarn instead is a problem for me. Regards |
If you don't need to use yarn and you have yarn.lock file in your project, you can remove yarn.lock to prevent Parcel to use yarn. It is weird that it tries to install dependencies that is already installed though. Might be worth looking into it and make an issue. |
Hello @Hoishin , thanks to your prompt response. According to documentation, two weird things are happening on my case
I don't have an yarn.lock file because we do not use yarn at all, so I don't understand why parcel is trying to use yarn. The only thing I see on parcel log is
I'm not using serve neither watch, why is it activating the autoinstall ? This are the commands that are being executed: "visual-repl-clean": "rimraf src/services/visual-repl/templates/dist",
"visual-repl-build": "npm run visual-repl-clean && parcel build --public-url ./repl/ -d src/services/visual-repl/templates/dist src/services/visual-repl/src/index.html", As you can see, the production mode should be activated |
Something to make my assertions more credible here are the first lines of log
As you can see, no lockfile found so, why is it using yarn ? |
Do you have |
No, I don't have package-lock either. |
OK, I looked into the logic that determines the package manager to use, and thought it would default to yarn which I think is wrong too. Would you mind opening issue? |
Sure! |
🐛 bug report
When I launch parcel it executes a very strange command "yarn add v1.9.4". It also throws error on hawk plugin ... I do not know what it is.
🎛 Configuration (.babelrc, package.json, cli command)
I use Typescript
🤔 Expected Behavior
Parcel should start
😯 Current Behavior
Parcel crashes
💁 Possible Solution
🔦 Context
💻 Code Sample
https://github.com/tomitrescak/corporator
🌍 Your Environment
The text was updated successfully, but these errors were encountered: