P
P
Pavel2019-04-26 11:53:07
Node.js
Pavel, 2019-04-26 11:53:07

Why can't I publish my npm package?

I'm just starting to learn node.js, while mastering npm I ran into a problem: I can't publish my package (module). I already logged into npm but it still doesn't work. After entering the npm pablish command, this is displayed:
C:\Users\Sergey\Documents\moduleofninene>npm publish
npm notice
npm notice package: [email protected]
npm notice === Tarball Contents ===
npm notice 210B package.json
npm notice 71B index.js
npm notice === Tarball Details ===
npm notice name: moduleofninene
npm notice version: 0.0.1
npm notice package size: 328 B
npm notice unpacked size: 281 B
npm notice shasum: f8f352121d02db9a097ae2ccbe916c1b9600698e
npm notice integrity: sha512-VbxxDT3WxA1yQ[...]ewQ4v1ifKsb2w==
npm notice total files: 2
npm notice
npm ERR! publish Failed PUT 403
npm ERR! code E403
npm ERR! you must verify your email before publishing a new package: https://www
.npmjs.com/email-edit : moduleofninene
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Sergey\AppData\Roaming\npm-cache\_logs\2019-04-26T08_39_39
PS: I am in the correct directory.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
Leo Developer, 2019-04-26
@indexOff

It also says that you need to confirm the mail

D
Denis Yanchevsky, 2017-03-23
@selftrips

Judging by the code, this function is attached to the cryout_branding_hook hook.
So it's worth trying something like this:

add_action( 'template_redirect', 'remove_my_action' );
function remove_my_action(){
  global $post;
  if(get_post_meta($post->ID, 'meta_key', true) == 'значение') {
    remove_action( 'cryout_branding_hook', 'tempera_title_and_description', );
  }
}

A
Alexey, 2017-03-23
@masterfreelance

add this condition to the body of the function itself. When the condition is met, do return without executing the main body of the function.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question