Alternatively, edit your .npmrc
file and change “init.author.name” to “init-author-name”.
For me, the full list of keys I had to change (replace . with -) was:
Old key New key
======= =======
init.author.name init-author-name
init.author.email init-author-email
init.author.url init-author-url
init.license init-license
The error/suggested fix returned was not helpful:
npm WARN config init.author.email Use `--init-author-email` instead.
npm WARN config init.author.name Use `--init-author-name` instead.
npm WARN config init.author.url Use `--init-author-url` instead.
npm WARN config init.license Use `--init-license` instead.
Had the warning been formatted slightly differently, perhaps a post here could have been avoided:
npm WARN config init.author.email Use `init-author-email` instead.
npm WARN config init.author.name Use `init-author-name` instead.
npm WARN config init.author.url Use `init-author-url` instead.
npm WARN config init.license Use `init-license` instead.