npm install -g: install hook has no write permissions
- Dominant language
- JavaScript
- Stars
- 10
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
When installing via `sudo npm i -g db-cli`, this error shows up:
```bash
npm WARN deprecated br2nl@1.0.0: Package no longer supported. Contact support@npmjs.com for more info.
/usr/bin/db-dep -> /usr/lib/node_modules/db-cli/dep.js
/usr/bin/db-journey -> /usr/lib/node_modules/db-cli/journey.js
> hafas-client@3.10.1 install /usr/lib/node_modules/db-cli/node_modules/hafas-client
> node lib/generate-install-id.js >id.json
sh: id.json: Keine Berechtigung [ = no permission]
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hafas-client@3.10.1 install: `node lib/generate-install-id.js >id.json`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hafas-client@3.10.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-06-17T16_14_47_426Z-debug.log
8,51s user 1,44s system 17% cpu 55,553 total
```
It does work with `sudo yarn global add db-cli`. :thinking:
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.