Windows 10 x64
Based on the information found here, I created a file called C:\Users\bushm\.npmrc
with the following content:
author = "Andrey Bushman"
However, when I run the command npm init -y
in a new directory, I noticed that the package.json
file displays an empty author
property:
{
"name": "foo",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
I also tried setting the author through the command:
npm config set author "Andrey Bushman"
but encountered the same issue...
Why is this happening?