Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm can not publish my module

I am trying to publish my module to see how it works.

I installed npm and then created my very simple module.

I used npm add user to add myself as a new user. I received the following message: Logged in as david1994 on https://registry.npmjs.org/

Then I tried to publish my module with npm publish, but I got the following error:

npm ERR! code: 'EPERM',
npm ERR! syscall: 'open',
npm ERR! path: 'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\supermodule\\npm-debug.log.1866747129' }

But I can not see any npm-debug.log in my module directory.

like image 763
David Martirosyan Avatar asked Sep 10 '16 18:09

David Martirosyan


1 Answers

Possible it looks like a module with that name was already published by someone else, so you'd need to use a different name, or use a scope if you really want to keep the same name.

could you check that the name is not already taken by someone else, as well?

read more

like image 92
Bipon Biswas Avatar answered Sep 28 '22 10:09

Bipon Biswas