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
Related
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
I am trying to run discord bot on amazon ec2, I made npm install, then I tried to run node . for test and this error poped up node . error then I noticed that when running npm install this pops up npm install warns. Please help!
Seems like your node version is out of date.
You can:
update node version (for example using n package)
transpile your code to es standard that can be handled with your version of node
You need minimum node.js v12 for running discord.js version v12
Problem solved! I updated version.
My problem is a bit tedious and need the community to help me out here.
I installed node 12 from the official site of Nodejs.org using it's .pkg file.
I use firebase functions shell to test our work locally, but due to version conflicts I need to downgrade to 10.
This is where the problems start, I installed NVM to get the downgraded version, and I was successful, so when I do node -v I see the v10 but when I run
firebase functions:shell
I still get the warning
Your requested "node" version "10" doesn't match your global version "12"
Now I need to get this sorted because my local cloud functions still don't work and I think it's still reading the 12th version of the node. I've followed different tutorials of manually deleting node from your system and again I was able to delete Node by verifying
node -v it gave me an error of node command not found which means Node was deleted, but even though Node uninstalled I still was able to run
firebase functions:shell and run the cloud function locally, so it means node 12 is still in the system but I can't seem to uninstall it.
So any help in this would be really appreciated.
Thanks
I was able to solve this using the following ways
Delete firebase from the global directory in the root folder.
So I wrote which firebase and it gave me a location on the root folder. I deleted that firebase instance.
Then I installed firebase using npm i -g firebase-tools this was installed directly into my nvm version of the node.
Only after that I was able to run firebase on the node version which I was using on the nvm
Open a new terminal and use nvm to set the version you need npm use 12. Finally, install the packages again with npm install.
Working through the setting up of a project that requires the use of gulp. However I am getting the error:
Your dev environment is running NodeJS version v10.13.0 which does not meet the requirements for running this tool. This tool requires a version of NodeJS that matches >=8.9.4 <9.0.0
It seems strange that I should have to go back a version to make the latest version of gulp (3.9.1) work.
Not familiar with this at all so any advice would be appreciated.
I'm looking at couchbase library for nodejs how can I know with which version of nodejs is this library compatible with? does it match node version 4.4.4? is there a way to see different versions of this couchbase library and see one that suits node 0.12.x. and one which suits node version 4.4.4?
Unfortunately there is no official way of working this out unless it is explicitly mentioned in a file in the repository (most often the README.md).
For a lot of the larger modules however, there is an alternative, you can install the latest version with:
npm install <module>
Navigate to that module and run:
npm test
To make sure that the version is compatible with your current version. If there are errors, look to see if you can fix them, if they seem to be compatibility issues, simply downgrade the installation. E.G:
npm uninstall <package>
npm install <package>#1.5.0