express - Error: Invalid version: "1.0" in node.js packge.json file -


i created basic package.json , running npm install throwing version error.

erroneous package.json

{     "name": "appone",     "description": "first cnp app",     "version": "1.0",     "dependencies": {         "express": "3.x"     } } 

however on changing version 1.0 0.0.1 working correctly.

i new node thought version refers app version can give number. please let me know referring , error.

well, can link-hop package.json documentation node-semver doc http://semver.org/, gist is, valid version strings must have major version, minor version, , patch version:

major.minor.patch 

so 1.0 not valid because doesn't have patch version. 1.0.0 acceptable.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -