{"id":243,"date":"2021-08-18T06:05:12","date_gmt":"2021-08-18T06:05:12","guid":{"rendered":"https:\/\/www.radiustheme.com\/docs\/homlisti-mobile-app\/?p=243"},"modified":"2025-03-06T10:07:57","modified_gmt":"2025-03-06T10:07:57","password":"","slug":"npm-error-invalid-version","status":"publish","type":"docs","link":"https:\/\/www.radiustheme.com\/docs\/homlisti-mobile-app\/docs\/app-build-services\/npm-error-invalid-version\/","title":{"rendered":"NPM error (Invalid version)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you get any error in installing the dependencies (e.g. npm ERR! Invalid version: \u201cx.x\u201d ) Please follow the below steps:<br>1. Delete \u201cnode_modules\u201d folder (root directory) if it is there.<br>2. Delete \u201cpackage-lock.json\u201d file\u00a0(root directory).<br>3. Check the value of \u201cversion\u201d in your app.json &amp; package.json file. If they are different, please make them same. And make it like 1.0.0 (three part)\u00a0<a href=\"https:\/\/docs.npmjs.com\/about-semantic-versioning\">See the versioning rules.<\/a><br>4. Now run \u201cnpm install\u201d command. If it gives any error, run \u201cnpm install &#8211;legacy-peer-deps\u201d .<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you get any error in installing the dependencies (e.g. npm ERR! Invalid version: \u201cx.x\u201d ) Please follow the below steps:1. Delete \u201cnode_modules\u201d folder (root directory) if it is there.2. Delete \u201cpackage-lock.json\u201d file\u00a0(root directory).3. Check the value of \u201cversion\u201d in your app.json &amp; package.json file. If they are different, please make them same. And make [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[9],"doc_tag":[],"class_list":["post-243","docs","type-docs","status-publish","hentry","doc_category-app-build-services"],"year_month":"2026-11","word_count":83,"total_views":"43","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"RadiusTheme","author_nicename":"rttlp","author_url":"https:\/\/www.radiustheme.com\/docs\/homlisti-mobile-app\/author\/rttlp\/"},"doc_category_info":[{"term_name":"App Build Services (Start from $100)","term_url":"https:\/\/www.radiustheme.com\/docs\/homlisti-mobile-app\/docs-category\/app-build-services\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/www.radiustheme.com\/docs\/homlisti-mobile-app\/wp-json\/wp\/v2\/docs\/243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.radiustheme.com\/docs\/homlisti-mobile-app\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.radiustheme.com\/docs\/homlisti-mobile-app\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.radiustheme.com\/docs\/homlisti-mobile-app\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.radiustheme.com\/docs\/homlisti-mobile-app\/wp-json\/wp\/v2\/comments?post=243"}],"version-history":[{"count":2,"href":"https:\/\/www.radiustheme.com\/docs\/homlisti-mobile-app\/wp-json\/wp\/v2\/docs\/243\/revisions"}],"predecessor-version":[{"id":249,"href":"https:\/\/www.radiustheme.com\/docs\/homlisti-mobile-app\/wp-json\/wp\/v2\/docs\/243\/revisions\/249"}],"wp:attachment":[{"href":"https:\/\/www.radiustheme.com\/docs\/homlisti-mobile-app\/wp-json\/wp\/v2\/media?parent=243"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.radiustheme.com\/docs\/homlisti-mobile-app\/wp-json\/wp\/v2\/doc_category?post=243"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.radiustheme.com\/docs\/homlisti-mobile-app\/wp-json\/wp\/v2\/doc_tag?post=243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}