Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

Yarn dependency warning


Hi,

I'm testing Laravel starter kit v8.1.8.
On Yarn cmd, I get the following warning

warning package.json: "dependencies" has dependency "axios" with range "^0.21.1" that collides with a dependency in "devDependencies" of the same name with version "^1.1.3"
warning "dependencies" has dependency "axios" with range "^0.21.1" that collides with a dependency in "devDependencies" of the same name with version "^1.1.3"
warning "dependencies" has dependency "axios" with range "^0.21.1" that collides with a dependency in "devDependencies" of the same name with version "^1.1.3"
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
warning "dependencies" has dependency "axios" with range "^0.21.1" that collides with a dependency in "devDependencies" of the same name with version "^1.1.3"

Why is that and how can it be fixed ?

Thanks


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi,

The warning you received indicates that there is a duplicate package for "axios" in both the "dependencies" and "devDependencies" sections of the package.json file, with different versions.

As a workaround, you can remove "axios": "^0.24.0" from the "devDependencies" section.

To clear the warning about the package-lock.json file, you can simply remove the package-lock.json file and use Yarn to reinstall the dependencies.

We will also include a fix for the duplicate "axios" package issue in the next update of the Laravel starter kit.

Thanks


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(