yarn icon indicating copy to clipboard operation
yarn copied to clipboard

Yarn 1.0.2 skipping deps installation (minimist)

Open Blackening999 opened this issue 9 years ago • 6 comments

Yarn 1.0.2 BUG

What is the current behavior? Yarn is missing minimist dependency for mkdirp and other dependencies during installation

Error:

Cannot find module '/Users/NAME/Work/My_Projects/PROJECTNAME/node_modules/mkdirp/node_modules/minimist//package.json'
├─┬ [email protected]
│ └─┬ [email protected]
│   └── [email protected] 

Add the ember-browserify as a dependency or any library that uses mkdirp, minimatch..

- what it should do - is install deps, right now the hack is to use npm install

Please mention your node.js, yarn and operating system version. OS X 10.12.3 Node: 6.11.2 npm: 3.10.10

Blackening999 avatar Sep 18 '17 07:09 Blackening999

We have the same problem with the debug library used by ava for example.

ava specs/ --require babel-register

module.js:529
    throw err;
    ^

Error: Cannot find module 'debug'
    at Function.Module._resolveFilename (module.js:527:15)

We went back to 0.27.5. Everything works fine there

rommsen avatar Sep 18 '17 08:09 rommsen

well, I don't think it's a good solution to jump to 0.27.5 :) you'd better do npm install and keep the latest version But for sure it's a big issue that requires attention

Blackening999 avatar Sep 18 '17 08:09 Blackening999

Well our build scripts do use yarn for production releases. No use in changing those scripts when we have a working version available.

rommsen avatar Sep 18 '17 08:09 rommsen

This may be due to a bug in resolving peerDependencies which is fixed on master. Can you try the latest nightly to see if it fixes the issue: https://yarnpkg.com/en/docs/nightly

BYK avatar Sep 18 '17 13:09 BYK

The newest nightly worked for me! Thank you 👍

ShadowMen avatar Sep 19 '17 08:09 ShadowMen

@ShadowMen nice! Since this is fixed on master, closing the ticket. Will release a new version soon!

BYK avatar Sep 19 '17 11:09 BYK