Tuesday, August 8, 2017

[node.js][Resolved] npm warn no repository field


Method 1

open you package.json in your directory root, add repository in the file:
"repository": {
  "type": "git",
  "url": "git://github.com/username/repository.git"
}

for an example:


Run command again and it's really work !

Metdhod 2 :

If u don't want using repository, you can add this:
"private"  : true,

Reference

https://stackoverflow.com/questions/16827858/npm-warn-package-json-no-repository-field

No comments :

Post a Comment