derhuerst / derhuerst/db-cli

npm install -g: install hook has no write permissions

Open
#1 12 comments 0 reactions 0 assignees View on GitHub
question
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.