{"id":1238,"date":"2017-05-05T10:05:02","date_gmt":"2017-05-05T08:05:02","guid":{"rendered":"https:\/\/blog.thecodecampus.de\/?p=1238"},"modified":"2023-12-20T19:58:35","modified_gmt":"2023-12-20T18:58:35","slug":"solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli","status":"publish","type":"post","link":"https:\/\/www.thecodecampus.de\/blog\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\/","title":{"rendered":"Solution: Error: NativeScript CLI not found. Use &#8217;nativescript.tnsPath&#8216; workspace setting to explicitly set the absolute path to the NativeScript CLI."},"content":{"rendered":"<p>Have you ever had this error message in <a href=\"https:\/\/code.visualstudio.com\/\">Visual Studio Code<\/a> with the <a href=\"https:\/\/github.com\/NativeScript\/nativescript-vscode-extension\">nativescript-vscode extension<\/a>? (I use Ubuntu 16.04)<\/p>\n<p>I had this problem for a while now and didn&#8217;t find any bug report that helped me, after adding the correct &#8217;nativescript.tnsPath&#8216; to the workspace settings, the problem still exists.<\/p>\n<p>The most funny part, from the Visual Studio Code terminal window,\u00a0I could call &#8222;tns&#8220; as normal and it works, so the nativescript-cli is correctly installed.<\/p>\n<blockquote><p><strong>Solution:<\/strong><\/p>\n<p>Just use your normal terminal and navigate into your NativeScript App root folder, use <span class=\"lang:default decode:true crayon-inline \">code .<\/span>\u00a0 to start Visual Studio Code with the actual folder.<\/p>\n<p>There you go, the extension should work properly.<\/p><\/blockquote>\n<p>If I start Visual Studio Code from the desktop entry\/ terminal, the nativescript folder is still open as last used folder, but I get the <em>&#8222;Error: NativeScript CLI not found. Use &#8217;nativescript.tnsPath&#8216; workspace setting to explicitly set the absolute path to the NativeScript CLI.&#8220;<\/em> again.<\/p>\n<p>I hope this helps someone, too.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever had this error message in Visual Studio Code with the nativescript-vscode extension? (I use Ubuntu 16.04) I had this problem for a while now and didn&#8217;t find any bug report that helped me, after adding the correct &#8217;nativescript.tnsPath&#8216; to the workspace settings, the problem still exists. The most funny part, from the [&#8230;]<br \/><a class=\"meta-big\" href=\"https:\/\/www.thecodecampus.de\/blog\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\/\"> READ MORE<\/a><\/p>\n","protected":false},"author":29,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63,79],"tags":[],"class_list":["post-1238","post","type-post","status-publish","format-standard","hentry","category-nativescript","category-tooling"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Solution: Error: NativeScript CLI not found. Use &#039;nativescript.tnsPath&#039; workspace setting to explicitly set the absolute path to the NativeScript CLI. - Web Development Blog<\/title>\n<meta name=\"description\" content=\"Solve NativeScript CLI errors. Use TNSPath for explicit paths. Elevate development seamlessly. Fix issues, optimize your workflow now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.thecodecampus.de\/blog\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Solution: Error: NativeScript CLI not found. Use &#039;nativescript.tnsPath&#039; workspace setting to explicitly set the absolute path to the NativeScript CLI. - Web Development Blog\" \/>\n<meta property=\"og:description\" content=\"Solve NativeScript CLI errors. Use TNSPath for explicit paths. Elevate development seamlessly. Fix issues, optimize your workflow now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.thecodecampus.de\/blog\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Development tips and tricks - theCodeCampus Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-05-05T08:05:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-20T18:58:35+00:00\" \/>\n<meta name=\"author\" content=\"theCodeCampus\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"theCodeCampus\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u00a0Minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\\\/\"},\"author\":{\"name\":\"theCodeCampus\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#\\\/schema\\\/person\\\/276bbda2f8da73154f22fb652201cfbc\"},\"headline\":\"Solution: Error: NativeScript CLI not found. Use &#8217;nativescript.tnsPath&#8216; workspace setting to explicitly set the absolute path to the NativeScript CLI.\",\"datePublished\":\"2017-05-05T08:05:02+00:00\",\"dateModified\":\"2023-12-20T18:58:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\\\/\"},\"wordCount\":182,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#organization\"},\"articleSection\":[\"NativeScript\",\"Tooling\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\\\/\",\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\\\/\",\"name\":\"Solution: Error: NativeScript CLI not found. Use 'nativescript.tnsPath' workspace setting to explicitly set the absolute path to the NativeScript CLI. - Web Development Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#website\"},\"datePublished\":\"2017-05-05T08:05:02+00:00\",\"dateModified\":\"2023-12-20T18:58:35+00:00\",\"description\":\"Solve NativeScript CLI errors. Use TNSPath for explicit paths. Elevate development seamlessly. Fix issues, optimize your workflow now!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Solution: Error: NativeScript CLI not found. Use &#8216;nativescript.tnsPath&#8217; workspace setting to explicitly set the absolute path to the NativeScript CLI.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/\",\"name\":\"Web Development tips and tricks - theCodeCampus Blog\",\"description\":\"Tips, tricks, and experiences about developing web and mobile applications with Angular, TypeScript, and Testing.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#organization\",\"name\":\"theCodeCampus\",\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/TCC-Logo-Bildmarke-quadratisch.jpg\",\"contentUrl\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/TCC-Logo-Bildmarke-quadratisch.jpg\",\"width\":156,\"height\":156,\"caption\":\"theCodeCampus\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#\\\/schema\\\/person\\\/276bbda2f8da73154f22fb652201cfbc\",\"name\":\"theCodeCampus\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/TCC-Logo-Bildmarke-quadratisch-96x96.jpg\",\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/TCC-Logo-Bildmarke-quadratisch-96x96.jpg\",\"contentUrl\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/TCC-Logo-Bildmarke-quadratisch-96x96.jpg\",\"caption\":\"theCodeCampus\"},\"description\":\"Our knowledge is not simply gained through reading - it is trained, tested and constantly being expanded. Because first and foremost, we are all developers at W11K. The know-how that we acquire here as developers, consultants and information architects flows immediately into our training courses and articles for theCodeCampus.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/showcase\\\/thecodecampus\\\/\"],\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Solution: Error: NativeScript CLI not found. Use 'nativescript.tnsPath' workspace setting to explicitly set the absolute path to the NativeScript CLI. - Web Development Blog","description":"Solve NativeScript CLI errors. Use TNSPath for explicit paths. Elevate development seamlessly. Fix issues, optimize your workflow now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.thecodecampus.de\/blog\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\/","og_locale":"de_DE","og_type":"article","og_title":"Solution: Error: NativeScript CLI not found. Use 'nativescript.tnsPath' workspace setting to explicitly set the absolute path to the NativeScript CLI. - Web Development Blog","og_description":"Solve NativeScript CLI errors. Use TNSPath for explicit paths. Elevate development seamlessly. Fix issues, optimize your workflow now!","og_url":"https:\/\/www.thecodecampus.de\/blog\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\/","og_site_name":"Web Development tips and tricks - theCodeCampus Blog","article_published_time":"2017-05-05T08:05:02+00:00","article_modified_time":"2023-12-20T18:58:35+00:00","author":"theCodeCampus","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"theCodeCampus","Gesch\u00e4tzte Lesezeit":"1\u00a0Minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.thecodecampus.de\/blog\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\/#article","isPartOf":{"@id":"https:\/\/www.thecodecampus.de\/blog\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\/"},"author":{"name":"theCodeCampus","@id":"https:\/\/www.thecodecampus.de\/blog\/#\/schema\/person\/276bbda2f8da73154f22fb652201cfbc"},"headline":"Solution: Error: NativeScript CLI not found. Use &#8217;nativescript.tnsPath&#8216; workspace setting to explicitly set the absolute path to the NativeScript CLI.","datePublished":"2017-05-05T08:05:02+00:00","dateModified":"2023-12-20T18:58:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.thecodecampus.de\/blog\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\/"},"wordCount":182,"commentCount":0,"publisher":{"@id":"https:\/\/www.thecodecampus.de\/blog\/#organization"},"articleSection":["NativeScript","Tooling"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.thecodecampus.de\/blog\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.thecodecampus.de\/blog\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\/","url":"https:\/\/www.thecodecampus.de\/blog\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\/","name":"Solution: Error: NativeScript CLI not found. Use 'nativescript.tnsPath' workspace setting to explicitly set the absolute path to the NativeScript CLI. - Web Development Blog","isPartOf":{"@id":"https:\/\/www.thecodecampus.de\/blog\/#website"},"datePublished":"2017-05-05T08:05:02+00:00","dateModified":"2023-12-20T18:58:35+00:00","description":"Solve NativeScript CLI errors. Use TNSPath for explicit paths. Elevate development seamlessly. Fix issues, optimize your workflow now!","breadcrumb":{"@id":"https:\/\/www.thecodecampus.de\/blog\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.thecodecampus.de\/blog\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.thecodecampus.de\/blog\/solution-error-nativescript-cli-not-found-use-nativescript-tnspath-workspace-setting-explicitly-set-absolute-path-nativescript-cli\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.thecodecampus.de\/blog\/"},{"@type":"ListItem","position":2,"name":"Solution: Error: NativeScript CLI not found. Use &#8216;nativescript.tnsPath&#8217; workspace setting to explicitly set the absolute path to the NativeScript CLI."}]},{"@type":"WebSite","@id":"https:\/\/www.thecodecampus.de\/blog\/#website","url":"https:\/\/www.thecodecampus.de\/blog\/","name":"Web Development tips and tricks - theCodeCampus Blog","description":"Tips, tricks, and experiences about developing web and mobile applications with Angular, TypeScript, and Testing.","publisher":{"@id":"https:\/\/www.thecodecampus.de\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.thecodecampus.de\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/www.thecodecampus.de\/blog\/#organization","name":"theCodeCampus","url":"https:\/\/www.thecodecampus.de\/blog\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.thecodecampus.de\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2024\/01\/TCC-Logo-Bildmarke-quadratisch.jpg","contentUrl":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2024\/01\/TCC-Logo-Bildmarke-quadratisch.jpg","width":156,"height":156,"caption":"theCodeCampus"},"image":{"@id":"https:\/\/www.thecodecampus.de\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.thecodecampus.de\/blog\/#\/schema\/person\/276bbda2f8da73154f22fb652201cfbc","name":"theCodeCampus","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2024\/01\/TCC-Logo-Bildmarke-quadratisch-96x96.jpg","url":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2024\/01\/TCC-Logo-Bildmarke-quadratisch-96x96.jpg","contentUrl":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2024\/01\/TCC-Logo-Bildmarke-quadratisch-96x96.jpg","caption":"theCodeCampus"},"description":"Our knowledge is not simply gained through reading - it is trained, tested and constantly being expanded. Because first and foremost, we are all developers at W11K. The know-how that we acquire here as developers, consultants and information architects flows immediately into our training courses and articles for theCodeCampus.","sameAs":["https:\/\/www.linkedin.com\/showcase\/thecodecampus\/"],"url":"https:\/\/www.thecodecampus.de\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/posts\/1238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/comments?post=1238"}],"version-history":[{"count":6,"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/posts\/1238\/revisions"}],"predecessor-version":[{"id":1244,"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/posts\/1238\/revisions\/1244"}],"wp:attachment":[{"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/media?parent=1238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/categories?post=1238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/tags?post=1238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}