loopback-auditz icon indicating copy to clipboard operation
loopback-auditz copied to clipboard

UNMET PEER DEPENDENCY when npm install, need support of remote-cdx 0.3.0

Open johncpang opened this issue 8 years ago • 5 comments

I followed the instruction and run nom install --save loopback-component-remote-ctx loopback-auditz and got this warning:

├── [email protected] 
└── UNMET PEER DEPENDENCY [email protected]

npm WARN [email protected] requires a peer of loopback-component-remote-ctx@^0.2.2 but none was installed.`

Tried to install each of them separately but not still got the warning. If I run nom install [email protected], I got:

└── [email protected]  invalid

Any suggestion? Thanks.

johncpang avatar May 14 '17 02:05 johncpang

I have the same problem. Please, let me know if you have found a solution!

Thank you!

led1234 avatar May 15 '17 15:05 led1234

No. I just ignore the warning.

But having remote ctx seems breaking some functions. I need to black list several methods in "member" (an extended model from "User") but not the whole model, as I have some related remote method which take advantage of the remote ctx (able to get the POST body in observe('after save',...)

I'm considering write my own mixin to replicate the features but without remote-ctx.

johncpang avatar May 15 '17 15:05 johncpang

Thank you for the answer!

I can't even use loopback with the described settings. I obtain this error:

Cannot load the LoopBack application: Cannot read property 'createModel' of undefined

Have you seen it?

Thank you!

led1234 avatar May 16 '17 09:05 led1234

With remote-ctx, your ctx and other arguments are changed. Need to check before use. I use console.log(ctx) and look for the changes.

johncpang avatar May 17 '17 08:05 johncpang

just install [email protected] so

npm install --save [email protected]

Though loopback-auditz should change package.json to @^0.3 if it does not break.

bariscicek avatar May 26 '17 12:05 bariscicek