Home > Mobile >  unable to publish my npm package got this error 415 Unsupported Media Type - No package.json found i
unable to publish my npm package got this error 415 Unsupported Media Type - No package.json found i

Time:03-24

when I run npm publish it shows 415 Unsupported Media Type - PUT https://registry.npmjs.org/json-to-plain-text - No package.json found in tarball

i dont know why it is showing like this,Is there any problem with my pc. I'm using parrot OS with nodejs version v12.22.5 and npm version 7.5.2

~$ cat  /home/sumith/.npm/_logs/2022-03-21T16_14_00_789Z-debug.log

0 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'publish' ]
1 info using [email protected]
2 info using [email protected]
3 timing config:load:defaults Completed in 1ms
4 timing config:load:file:/usr/share/nodejs/npm/npmrc Completed in 1ms
5 timing config:load:builtin Completed in 2ms
6 timing config:load:cli Completed in 1ms
7 timing config:load:env Completed in 1ms
8 timing config:load:file:/home/sumith/repos/json-to-plain-text/.npmrc Completed in 0ms
9 timing config:load:project Completed in 0ms
10 timing config:load:file:/home/sumith/.npmrc Completed in 1ms
11 timing config:load:user Completed in 1ms
12 timing config:load:file:/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:cafile Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 1ms
17 timing config:load:setEnvs Completed in 0ms
18 timing config:load Completed in 7ms
19 verbose npm-session 7f303ef810561d7f
20 timing npm:load Completed in 14ms
21 verbose publish [ '.' ]
22 notice
23 notice            
  • Related