Closed greypants closed 7 years ago
Duplicate #1609.
facing the exact same issue @wyze,
On node v7.4, Yarn0.18.1
Got the same error on bitbucket pipeline
v0.24.6
package.json
"scripts": {
"lint": "NODE_ENV=test eslint src/**"
},
Error:
+ yarn run lint
yarn run v0.24.6
error No command specified.
info Commands available from binary scripts: babel, babel-doctor, babel-external-helpers, babel-node, build-storybook, codeceptjs, eslint, jest, node-sass, nodemon, rimraf, serve, start-storybook, storybook-server, webpack, webpack-bundle-analyzer, webpack-dashboard, webpack-dev-server
info Project commands
- lint
NODE_ENV=test eslint src/**
And CI did't stop here. So again it's another issue. The yarn returned the wrong exit code. :clock930:
In my case there was a problem in .yarnrc
file
.yarnrc
--emoji true
So I removed that
Do you want to request a feature or report a bug? Bug 🐛
What is the current behavior?
yarn run
ignores a project command namedproduction
If the current behavior is a bug, please provide the steps to reproduce. Running
yarn run production
yields aNo command specefied
error, then proceeds to list Project commands, including the one specifiedWhat is the expected behavior? The
production
command listed in thescripts
object in mypakage.json
file should run. It seems to only ignore this specific word. If I rename the command to something likebuild
, it runs fine.Please mention your node.js, yarn and operating system version. Node v6.9.1, Yarn v0.17.8, OS X 10.10.5