The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
unscoped packages cannot be private
when I want to npm publish new npm, returned publish Failed PUT 400, unscoped packages cannot be private : nimi-magicui. I’m so confused. Please help me.
36 verbose statusCode 400
37 verbose pkgid nimi-magicui
38 verbose cwd /Users/mac/Desktop/wzz/project/mini_magicui
39 verbose Darwin 17.4.0
40 verbose argv “/usr/local/bin/node” “/usr/local/bin/npm” “publish”
41 verbose node v8.13.0
42 verbose npm v6.4.1
43 error code E400
44 error unscoped packages cannot be private : nimi-magicui
45 verbose exit [ 1, true ]
I wrote a complete answer here: http://www.compulsivecoders.com/tech/npm-error-unscoped-packages-cannot-be-private/
But to sum things up:
npm publish --access public
Hope it answers your question!