I am getting an error while deploying my site
Minimum Node version not met :(
You are using Node v12.22.2. We require Node >=14 or up!
tried updating buildspec.yaml file with node update commands npm install -g node,
Try running n 14.18.3.
The n package is pre-installed on (at least some) CodeBuild runtimes which you can use to install another version and select among installed versions.
Details here.
The default AWS linux container used by CodeBuild only supports nodejs version 12.x, so change it to the ubuntu image aws/codebuild/standard:5.0 that supports node version 14.x
See AWS Available Runtimes for nodejs
Related
I am building a sample application in which I need to use Node Version v9.11.2 and npm 4.0.0. Currently I have Node Version v16.4.0 installed on my system. I tried to install the specific version by uninstalling the latest version and installing version 9.11.2 from official website
Problem: The problem is I can uninstall the latest version without any problem but when I try to install older version(9.11.2) the command gets opened and it does nothing. I also tried to install the older version using cli commands ie. npm install -g node#9.11.2, it installs the version but on checking the version using node -v, it still shows the latest version(16.4.0)
Below are the screenshots for better understanding
Installed version 9.11.2 but showing 16.4.0
Any Solution please ?
Is using docker a possibility? If so you can simply get a docker image of the required version and use if from there.
Another way is to use NVM which is a really useful tool to manage nodejs versions. I'm including their github repo for your convenience:
https://github.com/nvm-sh/nvm
A good option is to use NVM: https://github.com/coreybutler/nvm-windows (Windows) or https://github.com/nvm-sh/nvm (unix, macOS). With NVM you can enable different versions of node on the same machine and switch from one to another, usually it takes care of managing the installed packages and adding them to its own management system.
I have a project with node version 6.17.1. It is not possible to upgrade the version at them moment.
I want to use the SES aws service, so I npm install aws-sdk, can see it in the file package.json, but when I run the project I get error:
Error: Cannot find module 'aws-sdk'
I've tried install older versions of aws sdk as version 2.312.0, the the result was the same.
Have anyone exprienced this? Is there a lit of compatible versions?
thanks
try deleting node_modules from your project directory and clear npm cache and then reinstall the right version of the aws-sdk that supports SES and that also works with node 6.7.1
if this still doesn't work then I would say resort to asking this question on aws forms and if you have aws support plan then make a case where the aws techs can get back to you on this issue
Trying to learn angular recently, but I am stuck in an error of angular. So here it is.
I am using Ubuntu 18.04, installed node latest version via nvm.
But I have "two" nodes in Ubuntu,[default] nodejs which is v8 now, and the node v13.
When I try to create angular project with ng new my-first-project it runs good, but it keeps warning of some deprecated dependencies for example core-js. I upgraded core-js to the latest(forced using sudo). But the deprecation warning did not disappear, I thought to use sudo ng new my-first-project but this time it brings me error
You are running version v8.10.0 of Node.js, which is not supported by Angular CLI 8.0+.
The official Node.js version that is supported is 10.9 or greater.
Please visit https://nodejs.org/en/ to find instructions on how to update Node.js.
How can I change angular's using nodejs -> node?
You have two Node.js versions installed with nvm, v8 and v13. It seems that Node.js v8 is active, you can check this with node --version command line command. If the version is really v8 you have to change it with nvm to v13 using nvm use 13.{x.x} command. The {x.x} should be the concrete installed version. If you don't know the installed versions by heart you can check them with nvm list command line command.
If you change the active Node.js version to v13 with nvm it will be used by Angular CLI and you won't get the above mentioned error.
Initially, i faced the issue, that concurrency doesn't work in Jenkins. I find this issue in official repository and followed advise to update Testcafe Docker Image to latest version (i took it from testcafe/testcafe repository). However, now i faced another issue. We have node-sass package using for web app which i test, and node-sass doesn't work with Node 10.x and displays this error message
Module build failed: Error: Missing binding /tests/node_modules/node-sass/vendor/linux_musl-x64-64/binding.node
Node Sass could not find a binding for your current environment: Linux/musl 64-bit with Node.js 10.x
Found bindings for the following environments:
- Linux/musl 64-bit with Node.js 8.x
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass` to download the binding for your current environment.
Is there is some workaround for it, or maybe Testcafe can use Node 8.x and then you can provide Docker Image with this node version?
At the moment we do not have plans to create multiple testcafe docker images for different node versions. However, I created a separate feature request.
Please track that ticket and vote for it. We can add it to our plans in the future.
Installed the Angular CLI using this command
npm install -g #angular/cli
But when creating new project using command
ng new PROJECT-NAME
it shows
You are running version v8.0.0 of Node.js, which is not supported by
Angular CLI v6. The official Node.js version that is supported is
8.9 and greater. Please visit https://nodejs.org/en/ to find instructions on how to update Node.js.
But actually i am using nodejs v9.11.1
See screenshot of my cli
Mostly sounds like a version problem. The new angular cli version requires the latest version of node.
All you need to do is update node and npm to latest version , everything should work fine.
If you are working on windows I'd suggest just going on their site and getting the latest one(currently at the time of this post is 8.11.2). For linux based and mac I would suggest looking for a guide how to get latest version since installing from terminal with something like (apt-get install or yum) will not have latest version you need (can easily be changed with some simple commands)
Also do check the version of node with: node -v
There has also been a naming conflict on linux regarding node vs nodejs see this question.