npm WARN install Refusing to install hapi as a dependency of itself

后端 未结 5 1149
傲寒
傲寒 2020-12-14 14:35

I tried to do the following (per instructions from official site):

  • mkdir hapi && cd hapi
  • npm init
  • npm
5条回答
  •  失恋的感觉
    2020-12-14 15:17

    The issue can be simply explained as follows the name of your package or module in package.json cannot be same as that of the package or module you are trying to install.

    Here hapi is the name of your module and you are trying to install a module with name hapi with npm install hapi --save

提交回复
热议问题