Open jcferrer opened 9 years ago
Following is a workaround to make it possible for npme private modules to be self-installed.
Assuming private module is @private/myapp
var argv = require('yargs').argv , ndm = require('ndm')('@private/myapp');
The docs say that you should use the name of the module inside the service.json, but without the prefix, the service.json is not found.
"myapp": { "description": "myapp", "module": "@private/myapp", "scripts": { "start": "node ./lib/myapp.js" }, ........
Without the "module" property the script change-directory (cd) command changes to an incorrect path.
Following is a workaround to make it possible for npme private modules to be self-installed.
Assuming private module is @private/myapp
var argv = require('yargs').argv , ndm = require('ndm')('@private/myapp');
The docs say that you should use the name of the module inside the service.json, but without the prefix, the service.json is not found.
"myapp": { "description": "myapp", "module": "@private/myapp", "scripts": { "start": "node ./lib/myapp.js" }, ........
Without the "module" property the script change-directory (cd) command changes to an incorrect path.