Monday 21 March 2016

Private module import (via git clone) messes npm install thereafter with npm 3

when I am trying to install an npm module after having a private module cloned inside my node_modules directory. npm gives this errorFor example here, I am trying to install ejs in my node project in which I already have a private module.root@27b6056fe5ff:/tes# npm install ejs --savenpm ERR! Linux 4.1.13-boot2dockernpm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "ejs" "--save"npm ERR! node v5.9.0npm ERR! npm v3.7.3npm ERR! path /tes/node_modules/myprivatemodulenpm ERR! code EISGITnpm ERR! git /test/node_modules/myprivatemodule: Appears to be a git repo or submodule.npm ERR! git /test/node_modules/myprivatemodulenpm ERR! git Refusing to remove it. Update manually,npm ERR! git or move it out of the way first.npm ERR! Please include the following file with any support request:npm ERR! /tes/npm-debug.logwhere as this installation works fine with npm 2.Did anyone face this similar issue?

Submitted March 22, 2016 at 05:57AM by ratancs

No comments:

Post a Comment