Skip to content

Commit

Permalink
improve: instructions on how to remove prisma deps (#766)
Browse files Browse the repository at this point in the history
Relates to #765 

Co-authored-by: Jason Kuhrt <jasonkuhrt@me.com>
  • Loading branch information
TomChv and jasonkuhrt authored Aug 3, 2020
1 parent d2d1a56 commit c9998a3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/prisma-deps-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,16 @@ ${red}│${reset} ${yellow}nexus-plugin-prisma${reset} bundles ${yellow}@prisma
${red}${reset} please uninstall the ones you have installed or you may
${red}${reset} encounter problems.
${red}${reset}
${red}${reset} Run the following command to fix this issue:
${red}${reset} Run the following commands to fix this issue
${red}${reset}
${red}${reset} 1. Remove the deps:
${red}${reset}
${red}${reset} ${green}${getPackageManagerBinName()} remove ${foundPrismaDeps.join(' ')}${reset}
${red}${reset} ${green}${getPackageManagerBinName()} remove ${foundPrismaDeps.join(' ')}${reset}
${red}${reset}
${red}${reset} 2. (Precaution) Reset the node_modules:
${red}${reset}
${red}${reset} ${green}rm -rf node_modules${reset}
${red}${reset} ${green}${getPackageManagerBinName()} install${reset}
${red}${reset}
${red}${reset} If you absolutely need to control the versions of your
${red}${reset} ${yellow}@prisma${reset} dependencies then use yarn and its ${yellow}resolutions${reset}
Expand Down

0 comments on commit c9998a3

Please sign in to comment.