NPM doesn't install module dependencies

前端 未结 16 1768
深忆病人
深忆病人 2020-12-02 06:39

This is my package.json for the module that I\'m including in the parent project:

{
  \"version\": \"0.0.1\",
  \"name\": \"module-name\",
  \"d         


        
16条回答
  •  长情又很酷
    2020-12-02 06:52

    OP may be true for an older version of node. However, I faced the same with node 4.4.1 as well.

    It very well may be linked to the node version you are using. Try to upgrade to a latest version. Certain dependencies don't load transitively if they are incompatible with node version.

    I found this by running npm update.

    After upgrading to latest version (4.4 -> 5.9); this got fixed.

提交回复
热议问题