yar run->没有这样的文件或目录:'run'

时间:2018-05-18 05:13:25

标签: yarnpkg jhipster-registry

我尝试运行纱线运行webpack:dev->我的package.json中的脚本。 终端返回此错误: [Errno 2]没有这样的文件或目录:'run'

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"

}

我在我的机器上运行此命令

我在终端写道:yarn --version - > 0.27

操作系统:Linuxmint 18.3

0 个答案:

没有答案