yar run->No such file or directory: 'run'

709 Views Asked by At

I try to run yarn run webpack: dev-> script in my package.json. The terminal returns this error: [Errno 2] No such file or directory: 'run'

script in the package.json:

"scripts": {
"lint": "tslint 'src/main/webapp/app/**/*.ts'",
"lint:fix": "tslint 'src/main/webapp/app/**/*.ts' --fix",
"tsc": "tsc",
"tsc:w": "tsc -w",
"ngc": "ngc -p tsconfig-aot.json",
"cleanup": "rimraf target/",
"start": "yarn run webpack:dev",
"webpack:build": "yarn run ngc && webpack --config webpack/webpack.vendor.js && webpack --config webpack/webpack.dev.js",
"webpack:build:dev": "webpack --config webpack/webpack.dev.js",
"webpack:build:vendor": "webpack --config webpack/webpack.vendor.js",
"webpack:dev": "webpack-dev-server --config webpack/webpack.dev.js  --progress --inline --hot --profile --port=9060",
"webpack:test": "yarn run ngc && yarn run test",
"webpack:prod": "yarn run ngc && webpack -p --config webpack/webpack.vendor.js && webpack -p --config webpack/webpack.prod.js",
"test": "yarn run lint && karma start src/test/javascript/karma.conf.js",
"test:watch": "karma start --watch",
"postinstall": "yarn run webpack:build"

}

I'm running this command on my machine.

I write in the terminal: yarn --version -> 0.27

OS: Linuxmint 18.3

0

There are 0 best solutions below