'Get an error during publishing Private Package

I have an account at npm it is already payed, so I have an ability to use private packages.

I have my organisation(scope) - let's call it ocean. I have a folder plaza which I want to convert to private package under ocean scope. In the end I want see private package @ocean/plaza. The idea is only people who were invited to ocean organisation can download this package.

My steps:

  1. npm init --scope=@ocean
  2. npm login (logged in my payable account)
  3. npm publish (without any additional commands to have a private package)
  4. error - npm ERR! 402 Payment Required - PUT https://registry.npmjs.org/@ocean%2fplaza - You must sign up for private packages

What I did wrong?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source