I'm not sure if I agree with npm's idea of package management:
% npm r heapdump
npm ERR! Linux 2.6.32-696.18.7.el6.x86_64
npm ERR! argv "/package/host/localhost/nodejs-6.13.1/bin/node" "/package/host/localhost/nodejs-6/bin/npm" "r" "heapdump"
npm ERR! node v6.13.1
npm ERR! npm v3.10.10
npm ERR! path /home/curv/tmp/nodebb/node_modules/nodebb-plugin-write-api
npm ERR! code EISGIT
npm ERR! git /home/curv/tmp/nodebb/node_modules/nodebb-plugin-write-api: Appears to be a git repo or submodule.
npm ERR! git /home/curv/tmp/nodebb/node_modules/nodebb-plugin-write-api
npm 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! /home/curv/tmp/nodebb/npm-debug.log
WTF?
However, since this is a test folder anyway, I just removed the plugin, did the npm r heapdump && npm cache clean
, removed "heapdump" from package.json
, checked if it is referenced in any other module (it is not), checked if the directory node_modules/heapdump
doesn't exist anymore (it didn't) and executed npm i
afterwards.
It seems that it updated all the required modules, it displayed the long final tree. But in the end, there were still compiling errors and it finishes with:
npm ERR! Linux 2.6.32-696.18.7.el6.x86_64
npm ERR! argv "/package/host/localhost/nodejs-6.13.1/bin/node" "/package/host/localhost/nodejs-6/bin/npm" "i"
npm ERR! node v6.13.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the heapdump package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs heapdump
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls heapdump
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/curv/tmp/nodebb/npm-debug.log
Compiler errors are the same, I'm not going to post them again.