{"id":9765,"date":"2024-03-25T11:40:13","date_gmt":"2024-03-25T11:40:13","guid":{"rendered":"https:\/\/www.bairesdev.com\/tools\/tessel\/?p=9765"},"modified":"2024-05-09T11:05:57","modified_gmt":"2024-05-09T11:05:57","slug":"node-js","status":"publish","type":"post","link":"https:\/\/www.bairesdev.com\/tools\/tessel\/docs\/node-js\/","title":{"rendered":"Node.js"},"content":{"rendered":"\n<p>This document will address common problems related to Node.js usage.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"nvm\">NVM<\/h2>\n\n\n\n<p>The official installation instructions assume Node is installed globally. For those of you using NVM this will not be the case. As indicated\u00a0<a href=\"https:\/\/github.com\/creationix\/nvm\/issues\/786\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>\u00a0NVM does not install globally by design.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"linux\">Linux<\/h3>\n\n\n\n<p>Install&nbsp;<code>t2-cli<\/code>&nbsp;module as normal. To install the drivers, perform the following:<\/p>\n\n\n\n<p><strong>Find where the&nbsp;<code>node<\/code>&nbsp;executable is located:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ which node\n\/home\/username\/.nvm\/versions\/node\/v4.5.0\/bin\/node\n<\/code><\/pre>\n\n\n\n<p>In the example above, the path is&nbsp;<code>\/home\/username\/.nvm\/versions\/node\/v4.5.0\/bin<\/code>&nbsp;(referred to as&nbsp;<code>$nodePath<\/code>&nbsp;below).<\/p>\n\n\n\n<p><strong>Install the drivers.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo PATH=\"$PATH:$nodePath\" $nodePath\/t2 install-drivers<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This document will address common problems related to Node.js usage. NVM The official installation instructions assume Node is installed globally. For those of you using NVM this will not be the case. As indicated\u00a0here\u00a0NVM does not install globally by design. Linux Install&nbsp;t2-cli&nbsp;module as normal. To install the drivers, perform the following: Find where the&nbsp;node&nbsp;executable is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58,4],"tags":[],"class_list":["post-9765","post","type-post","status-publish","format-standard","hentry","category-debugging","category-docs"],"_links":{"self":[{"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/posts\/9765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/comments?post=9765"}],"version-history":[{"count":2,"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/posts\/9765\/revisions"}],"predecessor-version":[{"id":10100,"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/posts\/9765\/revisions\/10100"}],"wp:attachment":[{"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/media?parent=9765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/categories?post=9765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bairesdev.com\/tools\/tessel\/wp-json\/wp\/v2\/tags?post=9765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}