AJP
AJP

Reputation: 28463

npm run <command> not working

With a package.json file like:

{
    "scripts": {
        "hello": "touch hello && echo hello"
    }
}

Running npm run hello creates no file and outputs nothing to stdout. I was expecting both to happen.

npm -v # 4.4.0

Upvotes: 5

Views: 10689

Answers (1)

AJP
AJP

Reputation: 28463

ignore-scripts=true was set in .npmrc

https://github.com/npm/npm/issues/10675

Upvotes: 18

Related Questions