yarn add package failed after added @types/node

Do you want to request a feature or report a bug?
bug

What is the current behavior?
yarn add failed

If the current behavior is a bug, please provide the steps to reproduce.

  1. yarn add @types/node –dev
  2. yarn add lodash, failed
// yarn-error.log
Trace: 
  Error: ENOENT: no such file or directory, open 'D:\builden-proj\vsbuild\node_modules\@types\iconv-lite\index.d.ts'
      at Error (native)
  1. yarn add lodash, success

What is the expected behavior?
yarn add lodash can success on everytime

Please mention your node.js, yarn and operating system version.
node.js – 6.8.1
yarn – 0.16.1
os – win7 or macos

Author: Fantashit

1 thought on “yarn add package failed after added @types/node

  1. win10 have the same problem
    nodejs-v6.8.1-x86
    yarn-v0.16.1

    the step is

    1. yarn init –yes
    2. yarn add @types/node –dev
    3. yarn add lodash, the Error show, and node_modules/@types dir have auto deleted

Comments are closed.