yarn isn't installing packages correctly
Bug Report or Feature Request (mark with an x)
- [x ] bug report -> please search issues before submitting
- [ ] feature request
Versions.
@angular/cli: 1.0.1 node: 6.10.2 os: win32 x64 yarn says 0.24.6 in 'Programs and Features' list; yarn --version says v0.22.0
Repro steps.
The log given by the failure.
Cannot find module 'remove-trailing-separator'
Error: Cannot find module 'remove-trailing-separator'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.
Desired functionality.
Mention any other details that might be useful.
The above happens because the remove-trailing-separator folder in node_modules is missing an index file.
The following works as expected: ... ng set --global packageManager=npm ... ng new GoodProject ... cd GoodProject ... ng serve
Comparing the node_modules\remove-trailing-separator folders in both GoodProject and FailedProject is what revealed the missing index.js
Further, 'yarn install' in GoodProject makes GoodProject fail, and 'npm install' in FailedProject makes FailedProject succeed.
This is an issue with yarn, not with the Angular CLI as you were able to reproduce this issue outside the CLI, I suggest opening an issue with that team. Good luck.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.