When trying to do npm install
when deploying my app based on Nuxt.JS in some virtual hosting env, I get an error:
npm ERR! nuxt@1.0.0-rc4 postinstall: `opencollective postinstall`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the nuxt@1.0.0-rc4 postinstall script 'opencollective postinstall'.
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 nuxt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! opencollective postinstall
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs nuxt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls nuxt
npm ERR! There is likely additional logging output above.
Didn't recognize which operation fails on missing priviledges, but definitely user account in the vhosting may be a little limited.
Apparently, this is known to opencollective devs, as they suggest to form postinstall like this just to make the script not preventing from installing the dependency:
"scripts": {
"postinstall": "./node_modules/.bin/opencollective-postinstall || exit 0"
},
(from https://github.com/opencollective/opencollective-postinstall)
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This bug report is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1205">#c1205</a>)</em></sub></div>