Skip to content

Syntax error: "(" unexpected #3

Description

@TanguyDucky

With a simple package.json

"scripts": {
    "delay": "npm-delay 1000"
}

Running npm run delay throws the following error:

/node_modules/.bin/npm-delay: 1: Syntax error: "(" unexpected

It works fine with

"scripts": {
    "delay": "node ./node_modules/npm-delay 1000"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions