Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. JavaScript
  4. NPM dependency madness

NPM dependency madness

Scheduled Pinned Locked Moved JavaScript
javascriptquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mel Padden
    wrote on last edited by
    #1

    Has anyone else noticed that NPM and Angular (in particular) generates a shocking number of dependency clashes? When I do an

    npm ls -depth=0

    I get about one hundred "ERR" lines, saying that I am missing peer dependencies. I am using Angular CLI on Angular 4, and apparently, npm has no "cleanup" function to resolve clashing and missing dependencies. Which begs the question; what the hell is it for, then? :wtf:

    One morning I shot an elephant in my pajamas. How he got in my pajamas, I don't know.

    Z J 2 Replies Last reply
    0
    • M Mel Padden

      Has anyone else noticed that NPM and Angular (in particular) generates a shocking number of dependency clashes? When I do an

      npm ls -depth=0

      I get about one hundred "ERR" lines, saying that I am missing peer dependencies. I am using Angular CLI on Angular 4, and apparently, npm has no "cleanup" function to resolve clashing and missing dependencies. Which begs the question; what the hell is it for, then? :wtf:

      One morning I shot an elephant in my pajamas. How he got in my pajamas, I don't know.

      Z Offline
      Z Offline
      ZurdoDev
      wrote on last edited by
      #2

      Throw Angular in the trash. :-\

      Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

      1 Reply Last reply
      0
      • M Mel Padden

        Has anyone else noticed that NPM and Angular (in particular) generates a shocking number of dependency clashes? When I do an

        npm ls -depth=0

        I get about one hundred "ERR" lines, saying that I am missing peer dependencies. I am using Angular CLI on Angular 4, and apparently, npm has no "cleanup" function to resolve clashing and missing dependencies. Which begs the question; what the hell is it for, then? :wtf:

        One morning I shot an elephant in my pajamas. How he got in my pajamas, I don't know.

        J Offline
        J Offline
        jkirkerx
        wrote on last edited by
        #3

        I only get 3. But maybe that explains why I'm having trouble with lazy loading. I can lazy load say /home, but not /admin or /reviews

        npm ERR! peer dep missing: @angular/common@6.1.0, required by @angular/router@6.1.0
        npm ERR! peer dep missing: @angular/core@6.1.0, required by @angular/router@6.1.0
        npm ERR! peer dep missing: @angular/platform-browser@6.1.0, required by @angular/router@6.1.0

        Now I have 0 with Angular 6.1.1 Then 32 others that don't seem significant. I adjusted my package.json and ran npm update

        If it ain't broke don't fix it Discover my world at jkirkerx.com

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups