NPM: After “npm link” module is not found

后端 未结 10 874
情深已故
情深已故 2021-02-11 11:31

I\'m developing two modules for NodeJS, first one named aligator and second one aligator-methods. Second one depends on first one to work. I\'m develop

10条回答
  •  我在风中等你
    2021-02-11 12:20

    Fix for my version of this issue; in npm v5.3.0, I removed node_modules from repo I was linking into another project.

    I found out that after npm v3 they try to put all node_modules dependencies into one node_modules directory (one in your project) to flatten the structure as much as possible (http://codetunnel.io/npm-5-changes-to-npm-link/).

提交回复
热议问题