<?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; nvm</title>
	<atom:link href="http://tech.yipp.ca/category/nvm/feed/" rel="self" type="application/rss+xml" />
	<link>http://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>gyp verb check python checking for Python executable &quot;python2&quot; in the PATH</title>
		<link>http://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>http://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="http://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="http://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="http://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="http://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://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>http://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>http://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="http://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="http://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="http://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="http://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.yipp.ca/nvm/npm-install-fails-with-npm-err-unexpected-token/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
