NPM: After “npm link” module is not found

后端 未结 10 868
情深已故
情深已故 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:19

    For me this happened when I decreased the version number of my local package from 0.1.0 to 0.0.1. And in the projects where I linked to this package I was still using the higher version number. Updating dependencies in package.json fixed it.

提交回复
热议问题