Skip to content

Commit

Permalink
Configure npm with legacy peers
Browse files Browse the repository at this point in the history
NOTE: If you create your package-lock.json file by running npm install
with flags that can affect the shape of your dependency tree, such as
--legacy-peer-deps or --install-links, you must provide the same flags
to npm ci or you are likely to encounter errors. An easy way to do this
is to run, for example, npm config set legacy-peer-deps=true
--location=project and commit the .npmrc file to your repo.
  • Loading branch information
ChengYanJin committed Jun 10, 2022
1 parent bf2a2f5 commit a0dbf20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true

0 comments on commit a0dbf20

Please sign in to comment.