Install & access a local folder as a npm module
问题 The file structure looks like this: = (main-folder) - package.json - ... = server - index.js - ... = deploy-abc // new server = src - index.js = src - index.js - ... I am trying to install 'deploy-abc' as a module within the main-folder app. So, I ran : yarn add "/var/www/main-folder/deploy-abc" . It installed correctly & I can see the 'deploy-abc' dependency listed in package.json. However, when I try to access the deploy-abc's exported object, I get node error Error: Cannot find module