node.js - package.json for global module installation -


i have package.json in modules have installed globally,below part added below dependencies

 "scripts": {   "preinstall": "npm -g supervisor",    "preinstall": "npm -g forever"     } 

but when ran npm install got error below

npm warn package.json aaa@0.0.0 no readme.md file found! npm warn cannot run in wd aaa@0.0.0 npm -g forever (wd=/home/administrator/aaa) 

all modules installed locally getting installed,but gloal installation throwing error.i stuck here appreciated.

put in package.json :

"config":{     "unsafe-perm":true } 

and install module root.

also think switch preferglobal : documentation, created modules prefer installed globally. might want change program logic use programatically forever module.


Comments