yarn add package failed after added @types/node

Do you want to request a feature or report a 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
  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

    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.