Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm run <command> not working

Tags:

npm

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

like image 272
AJP Avatar asked Dec 04 '22 22:12

AJP


1 Answers

ignore-scripts=true was set in .npmrc

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

like image 98
AJP Avatar answered Feb 03 '23 16:02

AJP