-
Notifications
You must be signed in to change notification settings - Fork 607
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
[rush] Unclear how to switch to npm package manger #1254
Comments
Delete both those files. (They are "unrecognized" because they're not used by NPM, and generally Rush doesn't want misleading files lying around to confuse people or tools.) Then run Rush's behavior does seem a little misleading. Perhaps we should document it better or improve the error message, if someone can propose a better behavior. @iclanton FYI |
Thank for your help. It works. Didn't expect i was just one step away from success, but i was horrified and stop by the potentially endless files deletion. It would be better to note down this work-around in document even if can not gracefully solve this problem currently. |
Yeah, we could have Rush collect a list of all unrecognized files. Also, we store the last package manager that was used for an install in the
If no new shrinkwrap file is found, you could also add:
|
Suggestion: Instead of |
upgrading pnpmVersion to 6.2.5 in rush.json also produces this message as well |
pnpm 6 change |
I have a working rush demo, then change to npm by edit rush.json : comment out
"pnpmVersion": "2.15.1"
and select"npmVersion": "4.5.0"
.But comands like rush unlink, rush purge, rush update give out Error:
Rush Multi-Project Build Tool 5.7.1 - https://rushjs.io ERROR: An unrecognized file "pnpmfile.js" was found in the Rush config folder: ~/rushDemo/common/config/rush
If i delete common/config/rush/pnpmfile.js, then got error message :
RROR: An unrecognized file "shrinkwrap.yaml" was found in the Rush config folder: ~/rushDemo/common/config/rush
Can anyone show me how to use npm instead of pnpm ?
The text was updated successfully, but these errors were encountered: