Comments (7)
Hi ๐.
I think that this is likely related to the latest release of the transitive dependency simple-git - there's a change in the most recent release that would appear to be causing the issue.
from serverless.
I had the same error, thank you, using nodejs 14 works.
from serverless.
Hi, we're having the same issue when the automatic CI/CD tries to run.
Deploying locally works since that package is already installed, but as far as I can tell, whatever build host serverless.com uses for deploys does not have the 'events' package installed, so their own "serverless" node script cannot execute. My guess is that the dependency change @stuartmccoll mentioned caught serverless by surprise, and they haven't updated their build servers yet.
If my understanding of the situation correct? Is there a workaround, or do we just wait for serverless to fix the issue?
Build started at Fri Mar 29 2024 16:12:52 GMT+0000 (GMT)
> node --version
v14.15.5
> npm --version
6.14.11
> npx serverless --version
/usr/local/nvm/versions/node/v14.15.5/lib/node_modules/serverless/node_modules/essentials/index.js:21
throw reason;
^
Error: Cannot find module 'node:events'
Require stack:
- /usr/local/nvm/versions/node/v14.15.5/lib/node_modules/serverless/node_modules/simple-git/dist/cjs/index.js
- /usr/local/nvm/versions/node/v14.15.5/lib/node_modules/serverless/node_modules/@serverless/dashboard-plugin/lib/deployment/parse.js
...
from serverless.
Hi there folks. We upgraded the version of Node from 14 to 16 yesterday which should alleviate this issue. We attempted to upgrade higher but the Amazon images for the Python runtimes used in AWS Lambda have library dependency issues so we were limited there.
from serverless.
Resolved for me. Thanks.
from serverless.
Closing this issue as solved.
from serverless.
I am still seeing this issue in aws codebuild container. I have [email protected] and nodejs 12.20.0. It is very difficult for us to upgrade to nodejs 16. Is there any workaround on it? Tried downgrading simple-git 3.22.0 but no luck. Please help as it is very critical for us.
from serverless.
Related Issues (20)
- V4 - Serverless Framework Dashboard CI/CD Compatibility
- V4 - Improve warning/behavior if users are using the wrong Node.js version HOT 1
- V4 - serverless.ts is not handled correctly HOT 5
- V4 - Ignores frameworkVersion property set in serverless.yml file HOT 2
- V4 - Ignores Serverless Framework version installed local and always uses globally installed version HOT 4
- The latest release broke install.sh on v3 HOT 3
- [Installation failure] Serverless deploy asks for login/license followed by AWS credential retrieval error HOT 2
- Serverless v4 beta has stable version in npm.js HOT 6
- V4: Default literal value for a parameter resolver is parsed incorrectly if it contains : HOT 1
- Confusing v4 messages after v3 deploy HOT 2
- [Kafka Trigger] Ease multiple topics consumption HOT 1
- Unable to Disable esbuild Bundling in Serverless4: 'Cannot use "external" without "bundle"' HOT 4
- V4 how to login in a non-interactive way? HOT 7
- V4: dev mode throws error when function invoked HOT 7
- run serverless info when running serverless dev HOT 7
- V4 Broken error reporting: functionHandler is not defined HOT 10
- V4: ${opt:stage} does not resolve when using "-s" but does when using "--stage" HOT 6
- serverless config credentials HOT 4
- V4 - Include original error message after our custom error messages when resolving AWS Credentials HOT 1
- V4: Unrecognized command โplugin installโ v4.0.26 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless.