Steveorevo/node-red-contrib-nbrowser

Error on run "npm i node-red-contrib-nbrowser"

Closed this issue · 6 comments

I've tried with and without --unsafe-perm option and received same error.

npm ERR! /usr/bin/git ls-remote -h -t git://github.com/segmentio/nightmare.git
npm ERR! 
npm ERR! fatal: Cannot change to '/root/.node-red/..': Permission denied
npm ERR! 
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-02-01T13_14_52_816Z-debug.log

If I change the dependencies all works ok.

"dependencies": {
    "nightmare": "^2.10.0",
    "nightmare-download-manager": "^0.2.4",
    "nightmare-upload": "^0.1.1",
    "unfluff": "^3.0.0"
  },

Interesting. We'll need further steps to reproduce the issue; OS platform/version?

I'm behind HTTP proxy, git:// not working with HTTP proxy.
It is also common practice for the dependencies to be bound by the npm itself and versioned. So if someone changes the working of a library does not break your package.
Look at NodeRED package.json (https://github.com/node-red/node-red/blob/master/package.json) as example.

Ahh, yes I see a few packages that could conflict without a forward compatible identifier ^. Will make the change and test further.

Resolved in 9463b88. New version 1.1.2 pushed. flows.nodered.org should update shortly.

Thanks for fix. It's working now.