Pablo Pablo - 2 years ago 630
Node.js Question

npm WARN package.json Stock@0.0.1 No repository field

I have a project in a personal private git, I downloaded in another computer and when trying to download the packages in

i got this error message:

pablo@debian:~/Documents/clients/stock$ npm install
npm WARN package.json Stock@0.0.1 No repository field.
npm WARN package.json Stock@0.0.1 No README data

This is the content of the

"name": "Stock",
"version": "0.0.1",
"description": "Stock App",
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-watch": "^0.6.1",
"grunt-execute": "^0.2.2",
"": "latest",
"mysql": "latest",
"express": "latest",
"path": "latest",
"express-session": "latest",
"cookie-parser": "latest",
"ejs": "latest"
"dependencies": {
"": "~1.3.7",
"body-parser": "~1.14.1"

What can I do, to packages to download, and why in my other computer I don't get this error?

Answer Source

These warnings are just warnings, and don't indicate anything reason that the dependencies would not have downloaded.

The package.json file shown is working perfectly for me. To debug your issue, try removing the node_modules folder and running npm install again. Note that if the packages are already in the node_modules folder, npm install won't download them again.

If you want to fix the warnings:

  1. Before devDependencies, add a repository option,

something like:

"repository": {
  "type": "git",
  "url": "[git-url-of-your-project]"

The URL doesn't have to be a github one, just whatever you use to git clone the project on another computer.

  1. Add a file called README
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download