<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Techy Things &#187; node.js</title>
	<atom:link href="https://tech.yipp.ca/category/node-js/feed/" rel="self" type="application/rss+xml" />
	<link>https://tech.yipp.ca</link>
	<description>Just another Yipp.ca Blogs site</description>
	<lastBuildDate>Thu, 01 May 2025 18:06:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>Compiling node-canvas with Node 20 fails with ‘v8::AccessorSignature’ has not been declared</title>
		<link>https://tech.yipp.ca/node-js/compiling-node-canvas-node-20-fails-v8accessorsignature-declared/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=compiling-node-canvas-node-20-fails-v8accessorsignature-declared</link>
		<comments>https://tech.yipp.ca/node-js/compiling-node-canvas-node-20-fails-v8accessorsignature-declared/#comments</comments>
		<pubDate>Thu, 01 May 2025 18:06:28 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[node.js]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=4543</guid>
		<description><![CDATA[<p>/home/frank/.cache/node-gyp/20.19.0/include/node/v8-persistent-handle.h:498:14: warning: array subscript 0 is outside array bounds of ‘Nan::Persistent&#60;v8::Object&#62; [0]’ [-Warray-bounds]   498 &#124;   this-&#62;val_ = New(isolate, internal::ValueHelper::ValueAsSlot(*other));       &#124;   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   CXX(target) Release/obj.target/canvas/src/backend/ImageBackend.o   CXX(target) Release/obj.target/canvas/src/backend/PdfBackend.o   CXX(target) Release/obj.target/canvas/src/backend/SvgBackend.o   CXX(target)&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/node-js/compiling-node-canvas-node-20-fails-v8accessorsignature-declared/">Compiling node-canvas with Node 20 fails with ‘v8::AccessorSignature’ has not been declared</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre>/home/frank/.cache/node-gyp/20.19.0/include/node/v8-persistent-handle.h:498:14: warning: array subscript 0 is outside array bounds of ‘Nan::Persistent&lt;v8::Object&gt; [0]’ [-Warray-bounds]
  498 |   this-&gt;val_ = New(isolate, internal::ValueHelper::ValueAsSlot(*other));
      |   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CXX(target) Release/obj.target/canvas/src/backend/ImageBackend.o
  CXX(target) Release/obj.target/canvas/src/backend/PdfBackend.o
  CXX(target) Release/obj.target/canvas/src/backend/SvgBackend.o
  CXX(target) Release/obj.target/canvas/src/bmp/BMPParser.o
  CXX(target) Release/obj.target/canvas/src/Backends.o
  CXX(target) Release/obj.target/canvas/src/Canvas.o
In file included from ../src/Canvas.cc:21:
../src/Util.h: In function ‘void SetProtoAccessor(v8::Local&lt;v8::ObjectTemplate&gt;, v8::Local&lt;v8::String&gt;, Nan::GetterCallback, Nan::SetterCallback, v8::Local&lt;v8::FunctionTemplate&gt;)’:
../src/Util.h:25:21: error: ‘v8::AccessorSignature’ has not been declared
   25 |                 v8::AccessorSignature::New(v8::Isolate::GetCurrent(), ctor)
      |                     ^~~~~~~~~~~~~~~~~
make: *** [canvas.target.mk:159: Release/obj.target/canvas/src/Canvas.o] Error 1
make: Leaving directory '/home/frank/dev/health-planner/server/node_modules/node-canvas/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.&lt;anonymous&gt; (/home/frank/.nvm/versions/node/v20.19.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23)
gyp ERR! System Linux 6.1.0-32-amd64
gyp ERR! command "/home/frank/.nvm/versions/node/v20.19.0/bin/node" "/home/frank/.nvm/versions/node/v20.19.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/frank/dev/health-planner/server/node_modules/node-canvas
</pre>
<h3>Solution #1</h3>
<p>Revert to Node 18</p>
<h3>Solution #2</h3>
<p>I'm̀ still looking for one</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/node-js/compiling-node-canvas-node-20-fails-v8accessorsignature-declared/">Compiling node-canvas with Node 20 fails with ‘v8::AccessorSignature’ has not been declared</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/node-js/compiling-node-canvas-node-20-fails-v8accessorsignature-declared/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>node-canvas on Windows fails with Warning: Missing input files: C:\GTK\bin\libpangowin32-1.0-0.dll etc</title>
		<link>https://tech.yipp.ca/node-js/node-canvas-windows-fails-warning-missing-input-files-cgtkbinlibpangowin32-1-0-0-dll-etc/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=node-canvas-windows-fails-warning-missing-input-files-cgtkbinlibpangowin32-1-0-0-dll-etc</link>
		<comments>https://tech.yipp.ca/node-js/node-canvas-windows-fails-warning-missing-input-files-cgtkbinlibpangowin32-1-0-0-dll-etc/#comments</comments>
		<pubDate>Mon, 21 Apr 2025 03:29:31 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[node.js]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=4537</guid>
		<description><![CDATA[<p>gyp info spawn args '-Dmodule_root_dir=C:\\dev\\health-planner\\server\\node_modules\\node-canvas', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'C:\\dev\\health-planner\\server\\node_modules\\node-canvas\\build', gyp info spawn args&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/node-js/node-canvas-windows-fails-warning-missing-input-files-cgtkbinlibpangowin32-1-0-0-dll-etc/">node-canvas on Windows fails with Warning: Missing input files: C:\GTK\bin\libpangowin32-1.0-0.dll etc</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre>gyp info spawn args '-Dmodule_root_dir=C:\\dev\\health-planner\\server\\node_modules\\node-canvas',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'C:\\dev\\health-planner\\server\\node_modules\\node-canvas\\build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
Warning: Missing input files:
C:\GTK\bin\libpangowin32-1.0-0.dll
C:\GTK\bin\libgmodule-2.0-0.dll
C:\GTK\bin\libgthread-2.0-0.dll
C:\GTK\bin\libcairo-2.dll
C:\GTK\bin\libpangoft2-1.0-0.dll
C:\GTK\bin\libpango-1.0-0.dll
C:\GTK\bin\zlib1.dll
C:\GTK\bin\libpangocairo-1.0-0.dll
C:\GTK\bin\libglib-2.0-0.dll
C:\GTK\bin\libgobject-2.0-0.dll
C:\GTK\bin\libfontconfig-1.dll
C:\GTK\bin\libexpat-1.dll
C:\GTK\bin\libfreetype-6.dll
C:\GTK\bin\libpng14-14.dll
C:\GTK\bin\libintl-8.dll
</pre>
<p>Solution #1</p>
<p>Go on Linux, it doesnt have this problem.</p>
<p>Solution #2</p>
<p>Use canvas npm instead of node-canvas. This one works better.</p>
<p>Solution #3</p>
<p>Install GTK</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/node-js/node-canvas-windows-fails-warning-missing-input-files-cgtkbinlibpangowin32-1-0-0-dll-etc/">node-canvas on Windows fails with Warning: Missing input files: C:\GTK\bin\libpangowin32-1.0-0.dll etc</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/node-js/node-canvas-windows-fails-warning-missing-input-files-cgtkbinlibpangowin32-1-0-0-dll-etc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ValueError: invalid mode: &#039;rU&#039; while trying to load binding.gyp</title>
		<link>https://tech.yipp.ca/python/valueerror-invalid-mode-ru-while-trying-to-load-binding-gyp/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=valueerror-invalid-mode-ru-while-trying-to-load-binding-gyp</link>
		<comments>https://tech.yipp.ca/python/valueerror-invalid-mode-ru-while-trying-to-load-binding-gyp/#comments</comments>
		<pubDate>Fri, 29 Mar 2024 02:49:30 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[node.js]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=4417</guid>
		<description><![CDATA[<p>Traceback (most recent call last): File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\gyp_main.py", line 51, in &#60;module&#62; sys.exit(gyp.script_main()) ^^^^^^^^^^^^^^^^^ File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 670, in script_main return main(sys.argv[1:]) ^^^^^^^^^^^^^^^^^^ File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 662, in main return gyp_main(args) ^^^^^^^^^^^^^^ File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/python/valueerror-invalid-mode-ru-while-trying-to-load-binding-gyp/">ValueError: invalid mode: 'rU' while trying to load binding.gyp</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre>Traceback (most recent call last):
 File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\gyp_main.py", line 51, in &lt;module&gt;
 sys.exit(gyp.script_main())
 ^^^^^^^^^^^^^^^^^
 File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 670, in script_main
 return main(sys.argv[1:])
 ^^^^^^^^^^^^^^^^^^
 File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 662, in main
 return gyp_main(args)
 ^^^^^^^^^^^^^^
 File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 629, in gyp_main
 [generator, flat_list, targets, data] = Load(
 ^^^^^
 File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 150, in Load
 result = gyp.input.Load(
 ^^^^^^^^^^^^^^^
 File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 3021, in Load
 LoadTargetBuildFile(
 File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 411, in LoadTargetBuildFile
 build_file_data = LoadOneBuildFile(
 ^^^^^^^^^^^^^^^^^
 File "C:\dev\react-scss-jest-typescript\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 239, in LoadOneBuildFile
 build_file_contents = open(build_file_path, "rU").read()
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid mode: 'rU' while trying to load binding.gyp
</pre>
<h3>Solution</h3>
<p>Uninstall Python 3.12.X and install an older version like<a href="https://www.python.org/downloads/release/python-31011/" target="_blank"> 3.10.X</a></p>
<p>The U file mode was removed in Python 3.11 because it had no effect so the U can merely be removed.</p>
<p><strong>Python 3.10.11 was tested as working.</strong></p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/python/valueerror-invalid-mode-ru-while-trying-to-load-binding-gyp/">ValueError: invalid mode: 'rU' while trying to load binding.gyp</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/python/valueerror-invalid-mode-ru-while-trying-to-load-binding-gyp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>gyp verb check python checking for Python executable &quot;python2&quot; in the PATH</title>
		<link>https://tech.yipp.ca/nvm/gyp-verb-check-python-checking-python-executable-python2-path-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=gyp-verb-check-python-checking-python-executable-python2-path-2</link>
		<comments>https://tech.yipp.ca/nvm/gyp-verb-check-python-checking-python-executable-python2-path-2/#comments</comments>
		<pubDate>Wed, 30 Mar 2022 04:05:21 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[node.js]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[nvm]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=4210</guid>
		<description><![CDATA[<p>error C:\dev\react-scss-jest-typescript\node_modules\sass-jest\node_modules\node-sass: Command failed. Exit code: 1 Command: node scripts/build.js Arguments: Directory: C:\dev\react-scss-jest-typescript\node_modules\sass-jest\node_modules\node-sass Output: Building: C:\Program Files\nodejs\node.exe C:\dev\react-scss-jest-typescript\node_modules\sass-jest\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= gyp info it worked if it ends with ok gyp&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/nvm/gyp-verb-check-python-checking-python-executable-python2-path-2/">gyp verb check python checking for Python executable "python2" in the PATH</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>error C:\dev\react-scss-jest-typescript\node_modules\sass-jest\node_modules\node-sass: Command failed.<br />
Exit code: 1<br />
Command: node scripts/build.js<br />
Arguments:<br />
Directory: C:\dev\react-scss-jest-typescript\node_modules\sass-jest\node_modules\node-sass<br />
Output:<br />
Building: C:\Program Files\nodejs\node.exe C:\dev\react-scss-jest-typescript\node_modules\sass-jest\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=<br />
gyp info it worked if it ends with ok<br />
gyp verb cli [<br />
gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',<br />
gyp verb cli 'C:\\dev\\react-scss-jest-typescript\\node_modules\\sass-jest\\node_modules\\node-gyp\\bin\\node-gyp.js',<br />
gyp verb cli 'rebuild',<br />
gyp verb cli '--verbose',<br />
gyp verb cli '--libsass_ext=',<br />
gyp verb cli '--libsass_cflags=',<br />
gyp verb cli '--libsass_ldflags=',<br />
gyp verb cli '--libsass_library='<br />
gyp verb cli ]<br />
gyp info using node-gyp@3.8.0<br />
gyp info using node@16.14.2 | win32 | x64<br />
gyp verb command rebuild []<br />
gyp verb command clean []<br />
gyp verb clean removing "build" directory<br />
gyp verb command configure []<br />
gyp verb check python checking for Python executable "python2" in the PATH<br />
gyp verb `which` failed Error: not found: python2<br />
gyp verb `which` failed at getNotFoundError (C:\dev\react-scss-jest-typescript\node_modules\which\which.js:13:12)<br />
gyp verb `which` failed at F (C:\dev\react-scss-jest-typescript\node_modules\which\which.js:68:19)<br />
gyp verb `which` failed at E (C:\dev\react-scss-jest-typescript\node_modules\which\which.js:80:29)<br />
gyp verb `which` failed at C:\dev\react-scss-jest-typescript\node_modules\which\which.js:89:16<br />
gyp verb `which` failed at C:\dev\react-scss-jest-typescript\node_modules\isexe\index.js:42:5<br />
gyp verb `which` failed at C:\dev\react-scss-jest-typescript\node_modules\isexe\windows.js:36:5<br />
gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21)<br />
gyp verb `which` failed python2 Error: not found: python2<br />
gyp verb `which` failed at getNotFoundError (C:\dev\react-scss-jest-typescript\node_modules\which\which.js:13:12)<br />
gyp verb `which` failed at F (C:\dev\react-scss-jest-typescript\node_modules\which\which.js:68:19)<br />
gyp verb `which` failed at E (C:\dev\react-scss-jest-typescript\node_modules\which\which.js:80:29)<br />
gyp verb `which` failed at C:\dev\react-scss-jest-typescript\node_modules\which\which.js:89:16<br />
gyp verb `which` failed at C:\dev\react-scss-jest-typescript\node_modules\isexe\windows.js:36:5<br />
gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21) {<br />
gyp verb `which` failed code: 'ENOENT'<br />
gyp verb `which` failed }<br />
gyp verb check python checking for Python executable "python" in the PATH<br />
gyp verb `which` succeeded python C:\Users\Domino\AppData\Local\Programs\Python\Python310\python.EXE<br />
gyp ERR! configure error<br />
gyp ERR! stack Error: Command failed: C:\Users\Domino\AppData\Local\Programs\Python\Python310\python.EXE -c import sys; print "%s.%s.%s" % sgyp ERR! stack File "&lt;string&gt;", line 1<br />
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];<br />
gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br />
gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?<br />
gyp ERR! stack<br />
gyp ERR! stack at ChildProcess.exithandler (node:child_process:399:12)<br />
gyp ERR! stack at ChildProcess.emit (node:events:526:28)<br />
gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)<br />
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)<br />
gyp ERR! System Windows_NT 10.0.19043<br />
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\dev\\react-scss-jest-typescript\\node_modules\\sass-jest\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="<br />
gyp ERR! cwd C:\dev\react-scss-jest-typescript\node_modules\sass-jest\node_modules\node-sass<br />
gyp ERR! node -v v16.14.2</p>
<h2>Solution</h2>
<p>$ npm install --global windows-build-tools</p>
<p>If it hangs and fails, try</p>
<p>$ npm install --global --production windows-build-tools@4.0.0</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/nvm/gyp-verb-check-python-checking-python-executable-python2-path-2/">gyp verb check python checking for Python executable "python2" in the PATH</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/nvm/gyp-verb-check-python-checking-python-executable-python2-path-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>npm install fails with npm ERR! Unexpected token &#039;.&#039;</title>
		<link>https://tech.yipp.ca/nvm/npm-install-fails-with-npm-err-unexpected-token/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=npm-install-fails-with-npm-err-unexpected-token</link>
		<comments>https://tech.yipp.ca/nvm/npm-install-fails-with-npm-err-unexpected-token/#comments</comments>
		<pubDate>Wed, 30 Mar 2022 02:56:52 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[node.js]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[nvm]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=4204</guid>
		<description><![CDATA[<p>Error npm install -g yarn npm ERR! Unexpected token '.' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Domino\AppData\Local\npm-cache\_logs\2022-03-25-debug-0.log &#160; Error with verbose on (...) npm verb stack&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/nvm/npm-install-fails-with-npm-err-unexpected-token/">npm install fails with npm ERR! Unexpected token '.'</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h3>Error</h3>
<pre class="lang-js s-code-block"><code class="hljs language-javascript">npm install -g yarn
npm <span class="hljs-variable constant_">ERR</span>! <span class="hljs-title class_">Unexpected</span> token <span class="hljs-string">'.'</span>

npm <span class="hljs-variable constant_">ERR</span>! A complete log <span class="hljs-keyword">of</span> <span class="hljs-variable language_">this</span> run can be found <span class="hljs-attr">in</span>:
npm <span class="hljs-variable constant_">ERR</span>!     <span class="hljs-attr">C</span>:\<span class="hljs-title class_">Users</span>\Domino\<span class="hljs-title class_">AppData</span>\<span class="hljs-title class_">Local</span>\npm-cache\_logs\<span class="hljs-number">2022</span>-<span class="hljs-number">03</span>-25-debug-<span class="hljs-number">0.</span>log
</code></pre>
<p>&nbsp;</p>
<h3>Error with verbose on</h3>
<p>(...)<br />
npm verb stack C:\Users\Domino\AppData\Roaming\nvm\v16.14.2\node_modules\npm\node_modules\libnpmfund:1<br />
npm verb stack ../workspaces/libnpmfund<br />
npm verb stack ^<br />
npm verb stack<br />
npm verb stack SyntaxError: Unexpected token '.'<br />
npm verb stack at Object.compileFunction (node:vm:352:18)<br />
npm verb stack at wrapSafe (node:internal/modules/cjs/loader:1032:15)<br />
npm verb stack at Module._compile (node:internal/modules/cjs/loader:1067:27)<br />
npm verb stack at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)<br />
npm verb stack at Module.load (node:internal/modules/cjs/loader:981:32)<br />
npm verb stack at Function.Module._load (node:internal/modules/cjs/loader:822:12)<br />
npm verb stack at Module.require (node:internal/modules/cjs/loader:1005:19)<br />
npm verb stack at require (node:internal/modules/cjs/helpers:102:18)<br />
npm verb stack at Object.&lt;anonymous&gt; (C:\Users\Domino\AppData\Roaming\nvm\v16.14.2\node_modules\npm\lib\utils\reify-output.js:16:38)</p>
<h2>Solution</h2>
<p>This is due to a <strong>bug</strong> introduced in <strong>nvm 1.1.8</strong>.</p>
<p>It fails to ask for the windows elevated permission prompt (UAE).</p>
<p><del>The solution is either to downgrade to nvm 1.1.7, or enable Windows feature "Developer Mode" to ON.</del></p>
<p>The solution is to upgrade to nvm 1.1.10 where the elevated permission prompt is restored !</p>
<h3>Problem #1 - exit status 5: Access is denied.</h3>
<p>PS C:\dev\react-scss-jest-typescript&gt; nvm uninstall 16.14.2<br />
Uninstalling node v16.14.2...exit status 5: Access is denied.</p>
<p>This is another variation of the same bug.</p>
<p>I tried this and was not happy with the results as it would only partially fix the issues. So I don't recommend it:</p>
<pre>$ Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
</pre>
<h2>How to Install nvm</h2>
<p>Latest installer for Windows: <a href="https://github.com/coreybutler/nvm-windows/releases" target="_blank">https://github.com/coreybutler/nvm-windows/releases</a></p>
<p>Latest installer for Linux/Mac: <a href="https://github.com/nvm-sh/nvm#install--update-script" target="_blank">https://github.com/nvm-sh/nvm#install--update-script</a></p>
<h2>Some people having same issues</h2>
<p>https://github.com/npm/cli/issues/4234</p>
<p>https://github.com/npm/cli/issues/4234</p>
<p>https://stackoverflow.com/questions/70852727/unknown-error-on-npm-install-npm-err-unexpected-token-on-using-nvm-window</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/nvm/npm-install-fails-with-npm-err-unexpected-token/">npm install fails with npm ERR! Unexpected token '.'</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/nvm/npm-install-fails-with-npm-err-unexpected-token/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On Node.js versions</title>
		<link>https://tech.yipp.ca/node-js/node-js-versions/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=node-js-versions</link>
		<comments>https://tech.yipp.ca/node-js/node-js-versions/#comments</comments>
		<pubDate>Thu, 23 Apr 2020 00:14:37 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[node.js]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=3573</guid>
		<description><![CDATA[<p>The Latest Nodes Releases for Majors Versions Node 13, Node 12, Node 11, Node 10 https://nodejs.org/dist/latest-v13.x/ ../ docs/ 14-Apr-2020 16:47 - win-x64/ 14-Apr-2020 16:35 - win-x86/ 14-Apr-2020 16:35 - SHASUMS256.txt 14-Apr-2020 18:27 3147 SHASUMS256.txt.asc&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/node-js/node-js-versions/">On Node.js versions</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2>The Latest Nodes Releases for Majors Versions</h2>
<p>Node 13, Node 12, Node 11, <a href="#node10">Node 10</a></p>
<h2></h2>
<p><a name="node13" />https://nodejs.org/dist/latest-v13.x/</p>
<pre><a href="https://nodejs.org/dist/">../</a>
<a href="https://nodejs.org/dist/latest-v13.x/docs/">docs/</a>                                              14-Apr-2020 16:47                   -
<a href="https://nodejs.org/dist/latest-v13.x/win-x64/">win-x64/</a>                                           14-Apr-2020 16:35                   -
<a href="https://nodejs.org/dist/latest-v13.x/win-x86/">win-x86/</a>                                           14-Apr-2020 16:35                   -
<a href="https://nodejs.org/dist/latest-v13.x/SHASUMS256.txt">SHASUMS256.txt</a>                                     14-Apr-2020 18:27                3147
<a href="https://nodejs.org/dist/latest-v13.x/SHASUMS256.txt.asc">SHASUMS256.txt.asc</a>                                 14-Apr-2020 18:27                4029
<a href="https://nodejs.org/dist/latest-v13.x/SHASUMS256.txt.sig">SHASUMS256.txt.sig</a>                                 14-Apr-2020 18:27                 566
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-aix-ppc64.tar.gz">node-v13.13.0-aix-ppc64.tar.gz</a>                     14-Apr-2020 16:10            43019192
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-darwin-x64.tar.gz">node-v13.13.0-darwin-x64.tar.gz</a>                    14-Apr-2020 17:27            31348703
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-darwin-x64.tar.xz">node-v13.13.0-darwin-x64.tar.xz</a>                    14-Apr-2020 17:28            20222248
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-headers.tar.gz">node-v13.13.0-headers.tar.gz</a>                       14-Apr-2020 16:48              550225
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-headers.tar.xz">node-v13.13.0-headers.tar.xz</a>                       14-Apr-2020 16:48              366956
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-linux-arm64.tar.gz">node-v13.13.0-linux-arm64.tar.gz</a>                   14-Apr-2020 16:12            33395759
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-linux-arm64.tar.xz">node-v13.13.0-linux-arm64.tar.xz</a>                   14-Apr-2020 16:15            20227900
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-linux-armv7l.tar.gz">node-v13.13.0-linux-armv7l.tar.gz</a>                  14-Apr-2020 16:15            31428176
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-linux-armv7l.tar.xz">node-v13.13.0-linux-armv7l.tar.xz</a>                  14-Apr-2020 16:16            18638004
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-linux-ppc64le.tar.gz">node-v13.13.0-linux-ppc64le.tar.gz</a>                 14-Apr-2020 16:14            33390920
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-linux-ppc64le.tar.xz">node-v13.13.0-linux-ppc64le.tar.xz</a>                 14-Apr-2020 16:15            20568576
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-linux-s390x.tar.gz">node-v13.13.0-linux-s390x.tar.gz</a>                   14-Apr-2020 16:14            33873984
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-linux-s390x.tar.xz">node-v13.13.0-linux-s390x.tar.xz</a>                   14-Apr-2020 16:14            20526256
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-linux-x64.tar.gz">node-v13.13.0-linux-x64.tar.gz</a>                     14-Apr-2020 16:13            33369132
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-linux-x64.tar.xz">node-v13.13.0-linux-x64.tar.xz</a>                     14-Apr-2020 16:15            21283272
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-sunos-x64.tar.gz">node-v13.13.0-sunos-x64.tar.gz</a>                     14-Apr-2020 16:53            37837020
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-sunos-x64.tar.xz">node-v13.13.0-sunos-x64.tar.xz</a>                     14-Apr-2020 16:54            24174692
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-win-x64.7z">node-v13.13.0-win-x64.7z</a>                           14-Apr-2020 16:35            16956562
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-win-x64.zip">node-v13.13.0-win-x64.zip</a>                          14-Apr-2020 16:35            28151919
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-win-x86.7z">node-v13.13.0-win-x86.7z</a>                           14-Apr-2020 16:39            15873405
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-win-x86.zip">node-v13.13.0-win-x86.zip</a>                          14-Apr-2020 16:43            26615381
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-x64.msi">node-v13.13.0-x64.msi</a>                              14-Apr-2020 16:35            29904896
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0-x86.msi">node-v13.13.0-x86.msi</a>                              14-Apr-2020 16:43            28266496
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0.pkg">node-v13.13.0.pkg</a>                                  14-Apr-2020 17:24            31681170
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0.tar.gz">node-v13.13.0.tar.gz</a>                               14-Apr-2020 16:41            61215472
<a href="https://nodejs.org/dist/latest-v13.x/node-v13.13.0.tar.xz">node-v13.13.0.tar.xz</a>                               14-Apr-2020 16:45            32862040</pre>
<p><a name="node12" />https://nodejs.org/dist/latest-v12.x/</p>
<pre><a href="https://nodejs.org/dist/">../</a>
<a href="https://nodejs.org/dist/latest-v12.x/docs/">docs/</a>                                              08-Apr-2020 04:09                   -
<a href="https://nodejs.org/dist/latest-v12.x/win-x64/">win-x64/</a>                                           08-Apr-2020 02:41                   -
<a href="https://nodejs.org/dist/latest-v12.x/win-x86/">win-x86/</a>                                           08-Apr-2020 02:34                   -
<a href="https://nodejs.org/dist/latest-v12.x/SHASUMS256.txt">SHASUMS256.txt</a>                                     08-Apr-2020 19:25                3147
<a href="https://nodejs.org/dist/latest-v12.x/SHASUMS256.txt.asc">SHASUMS256.txt.asc</a>                                 08-Apr-2020 19:25                4029
<a href="https://nodejs.org/dist/latest-v12.x/SHASUMS256.txt.sig">SHASUMS256.txt.sig</a>                                 08-Apr-2020 19:25                 566
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-aix-ppc64.tar.gz">node-v12.16.2-aix-ppc64.tar.gz</a>                     08-Apr-2020 16:24            32267957
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-darwin-x64.tar.gz">node-v12.16.2-darwin-x64.tar.gz</a>                    08-Apr-2020 17:00            20331548
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-darwin-x64.tar.xz">node-v12.16.2-darwin-x64.tar.xz</a>                    08-Apr-2020 17:01            13382680
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-headers.tar.gz">node-v12.16.2-headers.tar.gz</a>                       08-Apr-2020 16:57              548237
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-headers.tar.xz">node-v12.16.2-headers.tar.xz</a>                       08-Apr-2020 16:57              365416
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-linux-arm64.tar.gz">node-v12.16.2-linux-arm64.tar.gz</a>                   08-Apr-2020 16:26            23003145
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-linux-arm64.tar.xz">node-v12.16.2-linux-arm64.tar.xz</a>                   08-Apr-2020 16:28            13939796
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-linux-armv7l.tar.gz">node-v12.16.2-linux-armv7l.tar.gz</a>                  08-Apr-2020 16:28            21202445
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-linux-armv7l.tar.xz">node-v12.16.2-linux-armv7l.tar.xz</a>                  08-Apr-2020 16:29            12503028
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-linux-ppc64le.tar.gz">node-v12.16.2-linux-ppc64le.tar.gz</a>                 08-Apr-2020 16:27            23162733
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-linux-ppc64le.tar.xz">node-v12.16.2-linux-ppc64le.tar.xz</a>                 08-Apr-2020 16:28            13843368
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-linux-s390x.tar.gz">node-v12.16.2-linux-s390x.tar.gz</a>                   08-Apr-2020 16:28            23470105
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-linux-s390x.tar.xz">node-v12.16.2-linux-s390x.tar.xz</a>                   08-Apr-2020 16:28            13953480
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-linux-x64.tar.gz">node-v12.16.2-linux-x64.tar.gz</a>                     08-Apr-2020 16:59            23116958
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-linux-x64.tar.xz">node-v12.16.2-linux-x64.tar.xz</a>                     08-Apr-2020 17:00            14677200
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-sunos-x64.tar.gz">node-v12.16.2-sunos-x64.tar.gz</a>                     08-Apr-2020 17:21            27366342
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-sunos-x64.tar.xz">node-v12.16.2-sunos-x64.tar.xz</a>                     08-Apr-2020 17:22            16892496
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-win-x64.7z">node-v12.16.2-win-x64.7z</a>                           08-Apr-2020 16:48            10817850
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-win-x64.zip">node-v12.16.2-win-x64.zip</a>                          08-Apr-2020 16:48            18744085
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-win-x86.7z">node-v12.16.2-win-x86.7z</a>                           08-Apr-2020 16:51             9758976
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-win-x86.zip">node-v12.16.2-win-x86.zip</a>                          08-Apr-2020 16:51            17230009
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-x64.msi">node-v12.16.2-x64.msi</a>                              08-Apr-2020 16:48            19763200
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2-x86.msi">node-v12.16.2-x86.msi</a>                              08-Apr-2020 16:52            18157568
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2.pkg">node-v12.16.2.pkg</a>                                  08-Apr-2020 17:12            20606508
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2.tar.gz">node-v12.16.2.tar.gz</a>                               08-Apr-2020 16:51            52267110
<a href="https://nodejs.org/dist/latest-v12.x/node-v12.16.2.tar.xz">node-v12.16.2.tar.xz</a>                               08-Apr-2020 16:55            23654020</pre>
<p><a name="node11" />https://nodejs.org/dist/latest-v11.x/</p>
<pre><a href="https://nodejs.org/dist/">../</a>
<a href="https://nodejs.org/dist/latest-v11.x/docs/">docs/</a>                                              30-Apr-2019 17:39                   -
<a href="https://nodejs.org/dist/latest-v11.x/win-x64/">win-x64/</a>                                           30-Apr-2019 04:45                   -
<a href="https://nodejs.org/dist/latest-v11.x/win-x86/">win-x86/</a>                                           30-Apr-2019 04:38                   -
<a href="https://nodejs.org/dist/latest-v11.x/SHASUMS256.txt">SHASUMS256.txt</a>                                     30-Apr-2019 17:52                3347
<a href="https://nodejs.org/dist/latest-v11.x/SHASUMS256.txt.asc">SHASUMS256.txt.asc</a>                                 30-Apr-2019 17:52                4229
<a href="https://nodejs.org/dist/latest-v11.x/SHASUMS256.txt.sig">SHASUMS256.txt.sig</a>                                 30-Apr-2019 17:52                 566
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-aix-ppc64.tar.gz">node-v11.15.0-aix-ppc64.tar.gz</a>                     30-Apr-2019 04:23            24795120
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-darwin-x64.tar.gz">node-v11.15.0-darwin-x64.tar.gz</a>                    30-Apr-2019 04:17            17791487
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-darwin-x64.tar.xz">node-v11.15.0-darwin-x64.tar.xz</a>                    30-Apr-2019 04:18            11834000
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-headers.tar.gz">node-v11.15.0-headers.tar.gz</a>                       30-Apr-2019 17:39              530668
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-headers.tar.xz">node-v11.15.0-headers.tar.xz</a>                       30-Apr-2019 17:39              354924
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-linux-arm64.tar.gz">node-v11.15.0-linux-arm64.tar.gz</a>                   30-Apr-2019 03:46            20221444
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-linux-arm64.tar.xz">node-v11.15.0-linux-arm64.tar.xz</a>                   30-Apr-2019 03:48            12495356
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-linux-armv6l.tar.gz">node-v11.15.0-linux-armv6l.tar.gz</a>                  30-Apr-2019 04:14            19265450
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-linux-armv6l.tar.xz">node-v11.15.0-linux-armv6l.tar.xz</a>                  30-Apr-2019 04:15            11582208
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-linux-armv7l.tar.gz">node-v11.15.0-linux-armv7l.tar.gz</a>                  30-Apr-2019 04:55            19129403
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-linux-armv7l.tar.xz">node-v11.15.0-linux-armv7l.tar.xz</a>                  30-Apr-2019 04:56            11522716
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-linux-ppc64le.tar.gz">node-v11.15.0-linux-ppc64le.tar.gz</a>                 30-Apr-2019 03:49            20619352
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-linux-ppc64le.tar.xz">node-v11.15.0-linux-ppc64le.tar.xz</a>                 30-Apr-2019 03:50            12580400
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-linux-s390x.tar.gz">node-v11.15.0-linux-s390x.tar.gz</a>                   30-Apr-2019 03:50            20672841
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-linux-s390x.tar.xz">node-v11.15.0-linux-s390x.tar.xz</a>                   30-Apr-2019 03:50            12348512
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-linux-x64.tar.gz">node-v11.15.0-linux-x64.tar.gz</a>                     30-Apr-2019 04:29            20416954
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-linux-x64.tar.xz">node-v11.15.0-linux-x64.tar.xz</a>                     30-Apr-2019 04:30            13234412
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-sunos-x64.tar.gz">node-v11.15.0-sunos-x64.tar.gz</a>                     30-Apr-2019 03:50            21623898
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-sunos-x64.tar.xz">node-v11.15.0-sunos-x64.tar.xz</a>                     30-Apr-2019 03:51            13706776
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-win-x64.7z">node-v11.15.0-win-x64.7z</a>                           30-Apr-2019 04:46             9797160
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-win-x64.zip">node-v11.15.0-win-x64.zip</a>                          30-Apr-2019 04:46            16616022
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-win-x86.7z">node-v11.15.0-win-x86.7z</a>                           30-Apr-2019 04:38             8693995
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-win-x86.zip">node-v11.15.0-win-x86.zip</a>                          30-Apr-2019 04:38            15110850
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-x64.msi">node-v11.15.0-x64.msi</a>                              30-Apr-2019 04:47            17440768
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0-x86.msi">node-v11.15.0-x86.msi</a>                              30-Apr-2019 04:39            15843328
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0.pkg">node-v11.15.0.pkg</a>                                  30-Apr-2019 05:11            18032878
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0.tar.gz">node-v11.15.0.tar.gz</a>                               30-Apr-2019 17:32            48652148
<a href="https://nodejs.org/dist/latest-v11.x/node-v11.15.0.tar.xz">node-v11.15.0.tar.xz</a>                               30-Apr-2019 17:37            22115480

</pre>
<p><a name="node10" />https://nodejs.org/dist/latest-v10.x/</p>
<pre><a href="https://nodejs.org/dist/">../</a>
<a href="https://nodejs.org/dist/latest-v10.x/docs/">docs/</a>                                              12-Apr-2020 13:15                   -
<a href="https://nodejs.org/dist/latest-v10.x/win-x64/">win-x64/</a>                                           10-Apr-2020 18:27                   -
<a href="https://nodejs.org/dist/latest-v10.x/win-x86/">win-x86/</a>                                           10-Apr-2020 18:32                   -
<a href="https://nodejs.org/dist/latest-v10.x/SHASUMS256.txt">SHASUMS256.txt</a>                                     12-Apr-2020 13:24                3347
<a href="https://nodejs.org/dist/latest-v10.x/SHASUMS256.txt.asc">SHASUMS256.txt.asc</a>                                 12-Apr-2020 13:24                3884
<a href="https://nodejs.org/dist/latest-v10.x/SHASUMS256.txt.sig">SHASUMS256.txt.sig</a>                                 12-Apr-2020 13:24                 310
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-aix-ppc64.tar.gz">node-v10.20.1-aix-ppc64.tar.gz</a>                     12-Apr-2020 11:46            25777574
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-darwin-x64.tar.gz">node-v10.20.1-darwin-x64.tar.gz</a>                    12-Apr-2020 12:19            19181761
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-darwin-x64.tar.xz">node-v10.20.1-darwin-x64.tar.xz</a>                    12-Apr-2020 12:19            12522440
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-headers.tar.gz">node-v10.20.1-headers.tar.gz</a>                       12-Apr-2020 12:02              539769
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-headers.tar.xz">node-v10.20.1-headers.tar.xz</a>                       12-Apr-2020 12:02              358264
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-linux-arm64.tar.gz">node-v10.20.1-linux-arm64.tar.gz</a>                   12-Apr-2020 11:49            21229063
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-linux-arm64.tar.xz">node-v10.20.1-linux-arm64.tar.xz</a>                   12-Apr-2020 11:51            12908388
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-linux-armv6l.tar.gz">node-v10.20.1-linux-armv6l.tar.gz</a>                  12-Apr-2020 11:55            20159857
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-linux-armv6l.tar.xz">node-v10.20.1-linux-armv6l.tar.xz</a>                  12-Apr-2020 11:56            11838492
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-linux-armv7l.tar.gz">node-v10.20.1-linux-armv7l.tar.gz</a>                  12-Apr-2020 11:52            20016247
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-linux-armv7l.tar.xz">node-v10.20.1-linux-armv7l.tar.xz</a>                  12-Apr-2020 11:53            11788356
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-linux-ppc64le.tar.gz">node-v10.20.1-linux-ppc64le.tar.gz</a>                 12-Apr-2020 11:51            21196960
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-linux-ppc64le.tar.xz">node-v10.20.1-linux-ppc64le.tar.xz</a>                 12-Apr-2020 11:52            12681216
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-linux-s390x.tar.gz">node-v10.20.1-linux-s390x.tar.gz</a>                   12-Apr-2020 11:51            21544747
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-linux-s390x.tar.xz">node-v10.20.1-linux-s390x.tar.xz</a>                   12-Apr-2020 11:52            12810988
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-linux-x64.tar.gz">node-v10.20.1-linux-x64.tar.gz</a>                     12-Apr-2020 11:55            21286903
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-linux-x64.tar.xz">node-v10.20.1-linux-x64.tar.xz</a>                     12-Apr-2020 11:56            13455784
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-sunos-x64.tar.gz">node-v10.20.1-sunos-x64.tar.gz</a>                     12-Apr-2020 11:56            22504428
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-sunos-x64.tar.xz">node-v10.20.1-sunos-x64.tar.xz</a>                     12-Apr-2020 11:56            13989352
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-win-x64.7z">node-v10.20.1-win-x64.7z</a>                           12-Apr-2020 12:32            10603941
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-win-x64.zip">node-v10.20.1-win-x64.zip</a>                          12-Apr-2020 12:32            18601692
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-win-x86.7z">node-v10.20.1-win-x86.7z</a>                           12-Apr-2020 12:34             9511109
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-win-x86.zip">node-v10.20.1-win-x86.zip</a>                          12-Apr-2020 12:35            17101353
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-x64.msi">node-v10.20.1-x64.msi</a>                              12-Apr-2020 12:32            19484672
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1-x86.msi">node-v10.20.1-x86.msi</a>                              12-Apr-2020 12:38            17907712
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1.pkg">node-v10.20.1.pkg</a>                                  12-Apr-2020 12:26            19448064
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1.tar.gz">node-v10.20.1.tar.gz</a>                               12-Apr-2020 11:56            47181867
<a href="https://nodejs.org/dist/latest-v10.x/node-v10.20.1.tar.xz">node-v10.20.1.tar.xz</a>                               12-Apr-2020 12:00            21947588

</pre>
<p><span style="color: #000000; font-family: monospace; font-size: medium; white-space: pre;"> </span></p>
<p><span style="color: #000000; font-family: monospace; font-size: medium; white-space: pre;"> </span></p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/node-js/node-js-versions/">On Node.js versions</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/node-js/node-js-versions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debug NodeJS with Visual Studio Code on Windows and Linux</title>
		<link>https://tech.yipp.ca/node-js/debug-nodejs-visual-studio-code-windows-linux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=debug-nodejs-visual-studio-code-windows-linux</link>
		<comments>https://tech.yipp.ca/node-js/debug-nodejs-visual-studio-code-windows-linux/#comments</comments>
		<pubDate>Tue, 21 Jan 2020 18:33:40 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[node.js]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=3445</guid>
		<description><![CDATA[<p>Windows Download Visual Studio Code Download and Install Node.JS Restart Visual Studio Code if it was opened Create a dummy file to test like hello.js with this content : In Visual Studio Code, open&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/node-js/debug-nodejs-visual-studio-code-windows-linux/">Debug NodeJS with Visual Studio Code on Windows and Linux</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2>Windows</h2>
<ol>
<li>Download Visual Studio Code</li>
<li>Download and Install Node.JS</li>
<li>Restart Visual Studio Code if it was opened</li>
<li>Create a dummy file to test like hello.js with this content :</li>
<li>In Visual Studio Code, open the folder containing this file above.</li>
<li>From the left side of Visual Studio Code, double-click the file hello.js</li>
<li>Click on the top bar menu "Debug". It should work.</li>
</ol>
<h2>Linux</h2>
<p>This is a bit more tricky,  but possible. The solution is to run an extra command-line to setup a SSH tunnel between the host (windows) and the target (linux)</p>
<ol>
<li>Download Visual Studio Code</li>
<li>Download and Install Node.JS</li>
<li>Restart Visual Studio Code if it was opened</li>
<li>Create a test JS file to test like hello.js with this content :</li>
<li>Upload the JS file on the linux box</li>
<li>Run the JS file with debugger arguments:</li>
<li>WINDOWS: Open a SSH tunnel on the machien with Visual Studio Code<br />
Open a cmd.exe prompt and type :<br />
$ ssh -L 9229:127.0.0.1:9229 maik@remote-node-host</li>
</ol>
<h2>References</h2>
<p>https://maikthulhu.github.io/2019-05-17-remote-debugging-node-vscode/</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/node-js/debug-nodejs-visual-studio-code-windows-linux/">Debug NodeJS with Visual Studio Code on Windows and Linux</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/node-js/debug-nodejs-visual-studio-code-windows-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>../binding.cc:28:17: fatal error: zmq.h: No such file or directory</title>
		<link>https://tech.yipp.ca/node-js/binding-cc2817-fatal-error-zmq-h-file-directory/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=binding-cc2817-fatal-error-zmq-h-file-directory</link>
		<comments>https://tech.yipp.ca/node-js/binding-cc2817-fatal-error-zmq-h-file-directory/#comments</comments>
		<pubDate>Wed, 04 Dec 2019 18:50:36 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[node.js]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=3435</guid>
		<description><![CDATA[<p>../binding.cc:28:17: fatal error: zmq.h: No such file or directory Solution CentOS : sudo yum install -y zeromq-devel Debian : sudo apt-get install libzmq3-dev Full log of error make: Entering directory `/home/frank/product/js/services/node_modules/zmq/build' CXX(target) Release/obj.target/zmq/binding.o ../binding.cc:28:17: fatal&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/node-js/binding-cc2817-fatal-error-zmq-h-file-directory/">../binding.cc:28:17: fatal error: zmq.h: No such file or directory</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>../binding.cc:28:17: fatal error: zmq.h: No such file or directory</p>
<h2>Solution</h2>
<pre>CentOS : sudo yum install -y zeromq-devel
Debian : sudo apt-get install libzmq3-dev</pre>
<h2>Full log of error</h2>
<p>make: Entering directory `/home/frank/product/js/services/node_modules/zmq/build'<br />
CXX(target) Release/obj.target/zmq/binding.o<br />
../binding.cc:28:17: fatal error: zmq.h: No such file or directory<br />
#include &lt;zmq.h&gt;<br />
^<br />
compilation terminated.<br />
make: *** [Release/obj.target/zmq/binding.o] Error 1<br />
make: Leaving directory `/home/frank/product/js/services/node_modules/zmq/build'<br />
gyp ERR! build error<br />
gyp ERR! stack Error: `make` failed with exit code: 2<br />
gyp ERR! stack at ChildProcess.onExit (/home/frank/.nvm/versions/node/v8.16.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)<br />
gyp ERR! stack at emitTwo (events.js:126:13)<br />
gyp ERR! stack at ChildProcess.emit (events.js:214:7)<br />
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)<br />
gyp ERR! System Linux 3.10.0-957.21.2.el7.x86_64<br />
gyp ERR! command "/home/frank/.nvm/versions/node/v8.16.0/bin/node" "/home/frank/.nvm/versions/node/v8.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"<br />
gyp ERR! cwd /home/frank/product/js/services/node_modules/zmq<br />
gyp ERR! node -v v8.16.0<br />
gyp ERR! node-gyp -v v3.8.0<br />
gyp ERR! not ok<br />
npm ERR! code ELIFECYCLE<br />
npm ERR! errno 1<br />
npm ERR! zmq@2.15.3 install: `node-gyp rebuild`<br />
npm ERR! Exit status 1<br />
npm ERR!<br />
npm ERR! Failed at the zmq@2.15.3 install script.<br />
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.</p>
<p>npm ERR! A complete log of this run can be found in:<br />
npm ERR! /home/frank/.npm/_logs/2019-12-04T18_43_12_657Z-debug.log</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/node-js/binding-cc2817-fatal-error-zmq-h-file-directory/">../binding.cc:28:17: fatal error: zmq.h: No such file or directory</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/node-js/binding-cc2817-fatal-error-zmq-h-file-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>readv() failed (104: Connection reset by peer) while reading upstream</title>
		<link>https://tech.yipp.ca/nginx/readv-failed-104-connection-reset-peer-reading-upstream/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=readv-failed-104-connection-reset-peer-reading-upstream</link>
		<comments>https://tech.yipp.ca/nginx/readv-failed-104-connection-reset-peer-reading-upstream/#comments</comments>
		<pubDate>Mon, 04 Nov 2019 17:09:38 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[nginx]]></category>
		<category><![CDATA[node.js]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=3416</guid>
		<description><![CDATA[<p>[error] 1528#1528: *599 readv() failed (104: Connection reset by peer) while reading upstream, client: 10.65.11.207, server: localhost, request: "POST /apis/v2/system/upgrade/upload HTTP/1.1", upstream: "http://127.0.0.1:8085/apis/v2/system/upgrade/upload", host: "10.65.11.219", referrer: "https://10.65.11.219/admin/update" Understanding: This message "(XXX: Connection reset by&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/nginx/readv-failed-104-connection-reset-peer-reading-upstream/">readv() failed (104: Connection reset by peer) while reading upstream</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>[error] 1528#1528: *599 readv() failed (104: Connection reset by peer) while reading upstream, client: 10.65.11.207, server: localhost, request: "POST /apis/v2/system/upgrade/upload HTTP/1.1", upstream: "http://127.0.0.1:8085/apis/v2/system/upgrade/upload", host: "10.65.11.219", referrer: "https://10.65.11.219/admin/update"</p>
<h2>Understanding:</h2>
<p>This message "(XXX: Connection reset by peer) while reading upstream" appears when the server backend initiates the disconnect. It is not the client that failed. Usually the server will have responded to the request with a more specific error message to help debug. In my case the response which could be viewed with Google Chrome Network Inspector was :</p>
<p>HTTP 400 Bad Request<br />
"{"code":"BadRequest","message":"maxFileSize exceeded, received 209763252 bytes of file data"}"</p>
<h2>Solution:</h2>
<p>change<br />
http_server.use(restify.plugins.bodyParser();<br />
to<br />
http_server.use(restify.plugins.bodyParser({maxFileSize: 5 * 1024 * 1024 * 1024})); // 5 GB</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/nginx/readv-failed-104-connection-reset-peer-reading-upstream/">readv() failed (104: Connection reset by peer) while reading upstream</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/nginx/readv-failed-104-connection-reset-peer-reading-upstream/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NodeJS v8 &quot;err&quot;: {&quot;message&quot;: &quot;fsReadFileAsync(...).then(...).then(...).catch(...).done is not a function&quot;,</title>
		<link>https://tech.yipp.ca/node-js/nodejs-v8-errmessagefsreadfileasync-catch-done-function/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nodejs-v8-errmessagefsreadfileasync-catch-done-function</link>
		<comments>https://tech.yipp.ca/node-js/nodejs-v8-errmessagefsreadfileasync-catch-done-function/#comments</comments>
		<pubDate>Fri, 22 Dec 2017 15:10:41 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[node.js]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=2930</guid>
		<description><![CDATA[<p>After upgrading code and libraries, you might run into "err":{"message":"fsReadFileAsync(...).then(...).then(...).catch(...).done is not a function", An example erroneous code const fsReadFileAsync = util.promisify(fs.readFile.bind(fs)); const fsWriteFileAsync = util.promisify(fs.writeFile.bind(fs)); // First apply changes to fstab fsReadFileAsync(this._fstabFilename, "utf8")&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/node-js/nodejs-v8-errmessagefsreadfileasync-catch-done-function/">NodeJS v8 "err": {"message": "fsReadFileAsync(...).then(...).then(...).catch(...).done is not a function",</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>After upgrading code and libraries, you might run into</p>
<pre>"err":{"message":"fsReadFileAsync(...).then(...).then(...).catch(...).done is not a function",</pre>
<h3>An example erroneous code</h3>
<pre> const fsReadFileAsync = util.promisify(fs.readFile.bind(fs));
 const fsWriteFileAsync = util.promisify(fs.writeFile.bind(fs));

 // First apply changes to fstab
 fsReadFileAsync(this._fstabFilename, "utf8")
 .then(function (contents) {
  var modifiedContents =
  self._alterFstab(
  contents,
  networkStorage.active,
  networkStorage.host,
  networkStorage.remotePath);
  return fsWriteFileAsync(self._fstabFilename, modifiedContents);
 })

 // Save our settings unless there was an error applying fstab changes
 .then(function () {
  self._saveSettings(networkStorage, callback);
 })

 .catch(function (error) {
  Helpers.Log.Error({
   fstabPath: self._fstabFilename,
   settings: networkStorage,
   error: error.stack
  }, "Error applying changes to fstab");
  callback(Errors.InternalServer());
 }).done();</pre>
<h2>Solution</h2>
<p>Remove <strong>.done()</strong></p>
<p>This happens when upgrading from <strong><em>var QFS = require("q-io/fs");</em></strong> to native <em><strong>util.promisify()</strong></em></p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/node-js/nodejs-v8-errmessagefsreadfileasync-catch-done-function/">NodeJS v8 "err": {"message": "fsReadFileAsync(...).then(...).then(...).catch(...).done is not a function",</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/node-js/nodejs-v8-errmessagefsreadfileasync-catch-done-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
