livecycle / preevy

Quickly deploy preview environments to the cloud!
https://preevy.dev
Apache License 2.0
2.06k stars 78 forks source link

[Bug]: SyntaxError: Unexpected identifier 'assert' #492

Closed ShivamB25 closed 5 months ago

ShivamB25 commented 6 months ago

What happened?

When running the command npx preevy init, I encountered the following error: SyntaxError: Unexpected identifier 'assert'

Add screenshots

image

Steps to reproduce the behavior

  1. Open a terminal or command prompt.
  2. Run the command npx preevy init.
  3. The error SyntaxError: Unexpected identifier 'assert' is displayed.
  4. Run the command preevy init.
  5. The same error SyntaxError: Unexpected identifier 'assert' is displayed.

Expected behavior

expected the Preevy project initialization process to start without any errors. However, instead of the expected behavior, I encountered the SyntaxError: Unexpected identifier 'assert' error.[1]

What OS are you seeing the problem on?

MacOS

Additional context

while installing i received this:


npm install -g preevy
⠼
⠦
npm warn deprecated har-validator@5.1.5: this library is no longer supported
npm warn deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm warn deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm warn deprecated @aws-sdk/util-waiter@3.374.0: This package has moved to @smithy/util-waiter

added 766 packages in 2m```

nodejs version:
node -v
v22.1.0

### Record

- [X] I agree to follow this project's Code of Conduct
royra commented 6 months ago

Hi @ShivamB25

royra commented 6 months ago

Looks related to the latest changes in Node.js 22: https://github.com/nodejs/node/pull/52104

ShivamB25 commented 5 months ago

thank you