Skip to content

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

@ShivamB25

Description

@ShivamB25

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 [email protected]: this library is no longer supported
npm warn deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm warn deprecated [email protected]: 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/[email protected]: 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions