Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9168279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:35:29+00:00 2026-06-17T15:35:29+00:00

After reading npm-json ( npm help json ), I have construct the package.json file

  • 0

After reading npm-json (npm help json), I have construct the package.json file as follows: {"name": "app name", "version": "0.1"}. The directory has the following structure:

/
|-- main.js
|-- package.json

I am familiar with Node.js – do I need to reinstall all the modules on the production server when deploying the Node.js app, thus I have tried to install the dependencies by executing npm install moduleDep --save, but I am getting the following error:

0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'install', 'jquery', '--save' ]
2 info using npm@1.2.2
3 info using node@v0.8.18
4 verbose read json /home/roth/develop/build/package.json
5 error Error: invalid version: 1
5 error     at validVersion (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:582:40)
5 error     at final (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:342:23)
5 error     at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:140:33
5 error     at cb (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:48:11)
5 error     at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:320:48
5 error     at fs.js:117:20
5 error     at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:53:5
5 error     at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:62:5
5 error     at Object.oncomplete (fs.js:297:15)
6 error If you need help, you may report this log at:
6 error     <http://github.com/isaacs/npm/issues>
6 error or email it to:
6 error     <npm-@googlegroups.com>
7 error System Linux 3.1.10-1.16-desktop
8 error command "node" "/usr/local/bin/npm" "install" "jquery" "--save"
9 error cwd /home/roth/develop/build
10 error node -v v0.8.18
11 error npm -v 1.2.2
12 verbose exit [ 1, true ]

Before I can run the main module, I have to use NPM for installing the dependencies.
Is there any command which I can execute that will install and then add the dependency to the package.json? A thorough explanation will be great.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:35:30+00:00Added an answer on June 17, 2026 at 3:35 pm

    Node.js uses a 3 part versioning system like ‘0.0.1’ or ‘1.2.3’ – your ‘0.1’ won’t work. This is called semantic versioning, and it’s detailed here:

    http://semver.org/

    The basic idea is that you use three numbers that stand for major, minor, and patch (major.minor.patch).

    You can read more here about npm’s versioning:

    http://blog.nodejitsu.com/package-dependencies-done-right

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After reading a JSON result from a web service response: val jsonResult: JsValue =
After reading this post and links I still have 2 questions Question #1 What
After reading some statistics about my app I saw that it takes over one
After reading this nice article (The Care and Feeding of Pre-Compiled Headers), I have
After reading Eric Evans' Domain driven Design I have a few questions. I searched
After reading countless guides, tutorials and intros, I still can't get my app onto
After reading several questions/answers about unit testing Entity Framework, I have decided to forgo
After reading this article Storing C++ template function definitions in a .CPP file ,
After reading this question regarding Linux: Open Terminal From Eclipse I have the same
After reading an article on REST (Restful Grails), I have gotten the impression that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.