Summary
I am trying to do local setup on my Windows 11 .
After I created virtual environment with Node@10.17.0 , my npm is repeatedly giving error as saying “npm not supported with this specific version of Nodejs”…
But I have already installed Node@10 and npm package comes within it…
Technical details
- Kolibri version - v0.15.x
- Operating system - Windows 11
- Browser - Chrome
(kolibri) C:\Users\varun\Desktop\Code\Vs_code\kolibri>nodeenv -p --node=10.17.0
* Install prebuilt node (10.17.0) ..... done.
* Overwriting C:\Users\varun\Desktop\Code\Vs_code\kolibri\Scripts\activate.bat with new content
* Overwriting C:\Users\varun\Desktop\Code\Vs_code\kolibri\Scripts\deactivate.bat with new content
* Overwriting C:\Users\varun\Desktop\Code\Vs_code\kolibri\Scripts\Activate.ps1 with new content
symbolic link created for C:\Users\varun\Desktop\Code\Vs_code\kolibri\Scripts\nodejs.exe <<===>> node.exe
* Install npm.js (latest) ...
(kolibri) C:\Users\varun\Desktop\Code\Vs_code\kolibri>
(kolibri) C:\Users\varun\Desktop\Code\Vs_code\kolibri>npm --version
ERROR: npm v9.6.3 is known not to run on Node.js v10.17.0. This version of npm supports the following node versions: `^14.17.0 || ^16.13.0 || >=18.0.0`. You can find the latest version at https://nodejs.org/.
ERROR:
C:\Users\varun\Desktop\Code\Vs_code\kolibri\Scripts\node_modules\npm\lib\utils\exit-handler.js:19
const hasLoadedNpm = npm?.config.loaded
^
SyntaxError: Unexpected token .
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at module.exports (C:\Users\varun\Desktop\Code\Vs_code\kolibri\Scripts\node_modules\npm\lib\cli.js:42:23)
at Object.<anonymous> (C:\Users\varun\Desktop\Code\Vs_code\kolibri\Scripts\node_modules\npm\bin\npm-cli.js:2:25)
at Module._compile (internal/modules/cjs/loader.js:778:30)
ERROR: npm v9.6.3 is known not to run on Node.js v10.17.0. This version of npm supports the following node versions: `^14.17.0 || ^16.13.0 || >=18.0.0`. You can find the latest version at https://nodejs.org/.
ERROR:
C:\Users\varun\Desktop\Code\Vs_code\kolibri\Scripts\node_modules\npm\lib\utils\exit-handler.js:19
const hasLoadedNpm = npm?.config.loaded
^
SyntaxError: Unexpected token .
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at module.exports (C:\Users\varun\Desktop\Code\Vs_code\kolibri\Scripts\node_modules\npm\lib\cli.js:42:23)
at Object.<anonymous> (C:\Users\varun\Desktop\Code\Vs_code\kolibri\Scripts\node_modules\npm\bin\npm-cli.js:2:25)
at Module._compile (internal/modules/cjs/loader.js:778:30)