NPM warnings - how to rectify?

15 views
Skip to first unread message

Craig Rosier

unread,
Feb 28, 2018, 9:42:30 AM2/28/18
to nodejs
I am trying to install  nodes for my Broadlink using: npm install node-red-contrib-broadlink

I am getting the following errors:

Can anyone tell me how to fix this?

THX

Mikkel Wilson

unread,
Feb 28, 2018, 1:23:22 PM2/28/18
to nodejs
This must be quite an old piece of software you're using. You should remove the 'crypto' package from the dependencies in your package.json and remove your package-lock.json, then run `npm install`. The built-in crypto package should then load properly and the warning will go away. Additionally, the 'No repository field.' and 'No license field' can be resolved by adding them to your package.json:

{
...
    "license": "MIT",
    "repository": "github:user/repo"
...
}


Mikkel

DaneiL

unread,
Feb 28, 2018, 1:23:22 PM2/28/18
to nod...@googlegroups.com
The deprecated warning can be corrected by just updating the version of you package with warning.

On 28 February 2018 at 11:54, DaneiL <dani...@gmail.com> wrote:
Add this atributes to your package.json.
"repository": {
"type": "git",
"url": "git+https://examplerepository"
},
"license": "My license"

Aditionally choose a license from https://creativecommons.org/licenses/


--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscribe@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/017c77f6-4ca3-40b2-989e-4312789e7840%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
[]'s



--
[]'s
Reply all
Reply to author
Forward
0 new messages