<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Error: Cannot find module '../build/Release/keytar.node' in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/error-cannot-find-module-build-release-keytar-node/m-p/2388697#M932928</link>
    <description>&lt;P&gt;I am trying to setup the CLI for component development and get the infamous error "keytar module" not found.&lt;BR /&gt;&lt;BR /&gt;Can someone tell me the exact solution to this problem ?&lt;BR /&gt;&lt;BR /&gt;Running on MacOs Monterey 12.6 (M2)&lt;BR /&gt;Node: 12.16.1&lt;BR /&gt;NPM: 6.13.4&lt;BR /&gt;&lt;BR /&gt;SNC-CLI 1.1.0 from the store.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am using NVM as Node js manager and HAVE switch to 12.16.1 before I installed the cli and added the extension.&lt;/P&gt;</description>
    <pubDate>Sun, 20 Nov 2022 12:02:23 GMT</pubDate>
    <dc:creator>Tommy Jensen</dc:creator>
    <dc:date>2022-11-20T12:02:23Z</dc:date>
    <item>
      <title>Error: Cannot find module '../build/Release/keytar.node'</title>
      <link>https://www.servicenow.com/community/developer-forum/error-cannot-find-module-build-release-keytar-node/m-p/2388697#M932928</link>
      <description>&lt;P&gt;I am trying to setup the CLI for component development and get the infamous error "keytar module" not found.&lt;BR /&gt;&lt;BR /&gt;Can someone tell me the exact solution to this problem ?&lt;BR /&gt;&lt;BR /&gt;Running on MacOs Monterey 12.6 (M2)&lt;BR /&gt;Node: 12.16.1&lt;BR /&gt;NPM: 6.13.4&lt;BR /&gt;&lt;BR /&gt;SNC-CLI 1.1.0 from the store.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am using NVM as Node js manager and HAVE switch to 12.16.1 before I installed the cli and added the extension.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2022 12:02:23 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/error-cannot-find-module-build-release-keytar-node/m-p/2388697#M932928</guid>
      <dc:creator>Tommy Jensen</dc:creator>
      <dc:date>2022-11-20T12:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Cannot find module '../build/Release/keytar.node'</title>
      <link>https://www.servicenow.com/community/developer-forum/error-cannot-find-module-build-release-keytar-node/m-p/2392637#M934273</link>
      <description>&lt;P&gt;Nobody ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I find it extremely weird that this is not just working straight away since ServiceNow themself is an Apple house using Macs.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 09:41:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/error-cannot-find-module-build-release-keytar-node/m-p/2392637#M934273</guid>
      <dc:creator>Tommy Jensen</dc:creator>
      <dc:date>2022-11-23T09:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Cannot find module '../build/Release/keytar.node'</title>
      <link>https://www.servicenow.com/community/developer-forum/error-cannot-find-module-build-release-keytar-node/m-p/2399510#M936539</link>
      <description>&lt;P&gt;Sorry getting the same issue on windows 10, if I can find an answer I will reply here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 01:48:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/error-cannot-find-module-build-release-keytar-node/m-p/2399510#M936539</guid>
      <dc:creator>Gary Fawcett1</dc:creator>
      <dc:date>2022-11-30T01:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Cannot find module '../build/Release/keytar.node'</title>
      <link>https://www.servicenow.com/community/developer-forum/error-cannot-find-module-build-release-keytar-node/m-p/2401180#M937071</link>
      <description>&lt;P&gt;Tommy, can you confirm you get this when you type 'now-cli --version'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;node:internal/modules/cjs/loader:998
  throw err;
  ^

Error: Cannot find module 'keytar'
Require stack:
- C:\Users\&amp;lt;user_name&amp;gt;\AppData\Roaming\npm\node_modules\@servicenow\cli\node_modules\@servicenow\cli-glide\connection\auth\credential-manager\keytar-synthesizer.js
- C:\Users\&amp;lt;user_name&amp;gt;\AppData\Roaming\npm\node_modules\@servicenow\cli\node_modules\@servicenow\cli-glide\connection\auth\credential-manager\index.js
- C:\Users\&amp;lt;user_name&amp;gt;\AppData\Roaming\npm\node_modules\@servicenow\cli\node_modules\@servicenow\cli-glide\connection\auth\index.js
- C:\Users\&amp;lt;user_name&amp;gt;\AppData\Roaming\npm\node_modules\@servicenow\cli\node_modules\@servicenow\cli-glide\connection\index.js
- C:\Users\&amp;lt;user_name&amp;gt;\AppData\Roaming\npm\node_modules\@servicenow\cli\node_modules\@servicenow\cli-glide\index.js
- C:\Users\&amp;lt;user_name&amp;gt;\AppData\Roaming\npm\node_modules\@servicenow\cli\src\common\connection-utils.js
- C:\Users\&amp;lt;user_name&amp;gt;\AppData\Roaming\npm\node_modules\@servicenow\cli\src\api\index.js
- C:\Users\&amp;lt;user_name&amp;gt;\AppData\Roaming\npm\node_modules\@servicenow\cli\src\runner\plugin-factory.js
- C:\Users\&amp;lt;user_name&amp;gt;\AppData\Roaming\npm\node_modules\@servicenow\cli\src\runner\index.js
- C:\Users\&amp;lt;user_name&amp;gt;\AppData\Roaming\npm\node_modules\@servicenow\cli\src\index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Function.resolve (node:internal/modules/cjs/helpers:109:19)
    at rebuildKeytarBindings (C:\Users\&amp;lt;user_name&amp;gt;\AppData\Roaming\npm\node_modules\@servicenow\cli\node_modules\@servicenow\cli-glide\connection\auth\credential-manager\keytar-synthesizer.js:23:391)
    at module.exports (C:\Users\&amp;lt;user_name&amp;gt;\AppData\Roaming\npm\node_modules\@servicenow\cli\node_modules\@servicenow\cli-glide\connection\auth\credential-manager\keytar-synthesizer.js:23:610)
    at Object.&amp;lt;anonymous&amp;gt; (C:\Users\&amp;lt;user_name&amp;gt;\AppData\Roaming\npm\node_modules\@servicenow\cli\node_modules\@servicenow\cli-glide\connection\auth\credential-manager\index.js:23:202)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    'C:\\Users\\&amp;lt;user_name&amp;gt;\\AppData\\Roaming\\npm\\node_modules\\@servicenow\\cli\\node_modules\\@servicenow\\cli-glide\\connection\\auth\\credential-manager\\keytar-synthesizer.js',
    'C:\\Users\\&amp;lt;user_name&amp;gt;\\AppData\\Roaming\\npm\\node_modules\\@servicenow\\cli\\node_modules\\@servicenow\\cli-glide\\connection\\auth\\credential-manager\\index.js',
    'C:\\Users\\&amp;lt;user_name&amp;gt;\\AppData\\Roaming\\npm\\node_modules\\@servicenow\\cli\\node_modules\\@servicenow\\cli-glide\\connection\\auth\\index.js',
    'C:\\Users\\&amp;lt;user_name&amp;gt;\\AppData\\Roaming\\npm\\node_modules\\@servicenow\\cli\\node_modules\\@servicenow\\cli-glide\\connection\\index.js',
    'C:\\Users\\&amp;lt;user_name&amp;gt;\\AppData\\Roaming\\npm\\node_modules\\@servicenow\\cli\\node_modules\\@servicenow\\cli-glide\\index.js',
    'C:\\Users\\&amp;lt;user_name&amp;gt;\\AppData\\Roaming\\npm\\node_modules\\@servicenow\\cli\\src\\common\\connection-utils.js',
    'C:\\Users\\&amp;lt;user_name&amp;gt;\\AppData\\Roaming\\npm\\node_modules\\@servicenow\\cli\\src\\api\\index.js',
    'C:\\Users\\&amp;lt;user_name&amp;gt;\\AppData\\Roaming\\npm\\node_modules\\@servicenow\\cli\\src\\runner\\plugin-factory.js',
    'C:\\Users\\&amp;lt;user_name&amp;gt;\\AppData\\Roaming\\npm\\node_modules\\@servicenow\\cli\\src\\runner\\index.js',
    'C:\\Users\\&amp;lt;user_name&amp;gt;\\AppData\\Roaming\\npm\\node_modules\\@servicenow\\cli\\src\\index.js'
  ]
}

Node.js v18.12.1&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 01 Dec 2022 00:51:15 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/error-cannot-find-module-build-release-keytar-node/m-p/2401180#M937071</guid>
      <dc:creator>Gary Fawcett1</dc:creator>
      <dc:date>2022-12-01T00:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Cannot find module '../build/Release/keytar.node'</title>
      <link>https://www.servicenow.com/community/developer-forum/error-cannot-find-module-build-release-keytar-node/m-p/2404052#M938041</link>
      <description>&lt;P&gt;Something like that yes.&lt;BR /&gt;&lt;BR /&gt;But after several install/uninstall it suddenly seemed to work. But If I download the sample repository and try to run that I get compile errors. A clean new project seemed to work though I did not try to deploy it I only ran it locally.&lt;BR /&gt;&lt;BR /&gt;I suspect the problem is nvm. I use nvm as I want to be able to use different node versions.&lt;BR /&gt;&lt;BR /&gt;I think the trick that made it work for me was when I set the default node version in nvm to 12.16.1. Because what happned was everytime I closed a terminal and opened it again the node version was set back to the latest node version and I had to use nvm to set it to 12.16.1 so maybe this occurs also when the cli command executes something.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So&amp;nbsp;@ServceNow please make this cli work with the latest node version. And KEEP it updated.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2022 06:48:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/error-cannot-find-module-build-release-keytar-node/m-p/2404052#M938041</guid>
      <dc:creator>Tommy Jensen</dc:creator>
      <dc:date>2022-12-04T06:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Cannot find module '../build/Release/keytar.node'</title>
      <link>https://www.servicenow.com/community/developer-forum/error-cannot-find-module-build-release-keytar-node/m-p/2404068#M938048</link>
      <description>&lt;P&gt;I created an idea, please vote if you would like thge CLI to be updated faster to support current Nodejs versions.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://support.servicenow.com/now?id=view_idea&amp;amp;sysparm_idea_id=7d34d9bddb2b9dd0e3a1c4be1396190e&amp;amp;sysparm_idea_table=x_snc_com_ideation_idea&amp;amp;sysparm_module_id=enhancement_requests" target="_blank"&gt;https://support.servicenow.com/now?id=view_idea&amp;amp;sysparm_idea_id=7d34d9bddb2b9dd0e3a1c4be1396190e&amp;amp;sysparm_idea_table=x_snc_com_ideation_idea&amp;amp;sysparm_module_id=enhancement_requests&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2022 08:20:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/error-cannot-find-module-build-release-keytar-node/m-p/2404068#M938048</guid>
      <dc:creator>Tommy Jensen</dc:creator>
      <dc:date>2022-12-04T08:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Cannot find module '../build/Release/keytar.node'</title>
      <link>https://www.servicenow.com/community/developer-forum/error-cannot-find-module-build-release-keytar-node/m-p/2404196#M938114</link>
      <description>&lt;P&gt;Upvoted, lets see what happens?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 02:59:16 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/error-cannot-find-module-build-release-keytar-node/m-p/2404196#M938114</guid>
      <dc:creator>Gary Fawcett1</dc:creator>
      <dc:date>2022-12-05T02:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Cannot find module '../build/Release/keytar.node'</title>
      <link>https://www.servicenow.com/community/developer-forum/error-cannot-find-module-build-release-keytar-node/m-p/2481406#M967819</link>
      <description>&lt;P&gt;I was able to get rid of this issue by installing the CLI via npm:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;npm i -g &lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/5544"&gt;@Servicenow_1&lt;/a&gt;/cli&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 08:53:50 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/error-cannot-find-module-build-release-keytar-node/m-p/2481406#M967819</guid>
      <dc:creator>j_15</dc:creator>
      <dc:date>2023-02-17T08:53:50Z</dc:date>
    </item>
  </channel>
</rss>

