Open mgol opened 7 years ago
If I merge devDependencies
into dependencies
, remove node_modules
& yarn.lock
and then re-try, everything seems to work fine.
It turned out I had NODE_ENV=production
set in this terminal. Still, it was weird that it sort-of-installed devDependencies at all in that scenario instead of skipping them completely.
I'm seeing this too.
It seems directly related to NODE_ENV=production
. Heroku sets NODE_ENV=production
and also NPM_CONFIG_PRODUCTION=false
to install devDependencies regardless of NODE_ENV
.
Looks like this might be a regression of #2104.
Also seeing this sporatically with our CircleCI builds - with v0.19.1
If I merge devDependencies into dependencies, remove node_modules & yarn.lock and then re-try, everything seems to work fine.
I was able to resolve it by just removing yarn.lock
and re-installing dependencies
Do you want to request a feature or report a bug?
A bug.
What is the current behavior?
yarn
sometimes doesn't install packages correctly:node_modules
folder and that's it.If the current behavior is a bug, please provide the steps to reproduce.
With the following package.json:
Fire
yarn cache clean && yarn
and then./node_modules/.bin/concurrently
. You'll get a message "Error: Cannot find module 'rx'".rx
is a dependency of theconcurrently
package so it's weird that it's not installed. But look into./node_modules/concurrently
- it only containsnode_modules
and none files. Moreover,./node_modules/concurrently/node_modules
only containssupports-color
; norx
here but also not under./node_modules/rx
so it's complaining correctly.Why does the command even start then, since the package folder is almost empty? Let's look into
./node_modules/.bin
:As you can see, some packages are taken from the yarn cache instead of the local location.
What is the expected behavior?
Please mention your node.js, yarn and operating system version. Node 6.9.2, yarn 0.17.10 (installed via Homebrew), macOS 10.12.1 (16B2555)