Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn add package failed after added @types/node #1286

Closed
builden opened this issue Oct 20, 2016 · 7 comments
Closed

yarn add package failed after added @types/node #1286

builden opened this issue Oct 20, 2016 · 7 comments

Comments

@builden
Copy link

builden commented Oct 20, 2016

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

@iamolivinius
Copy link

Works fine on Ubuntu 16.04

@builden
Copy link
Author

builden commented Oct 20, 2016

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

@viktor-nikolaev
Copy link

also removes bower_components as well as node_modules/@types folder.
Do not understand why.
Win8 x64

@wgv-sethlivingston
Copy link

Confirmed on Win7 x64, yarn v0.16.1

@wgv-sethlivingston
Copy link

Possible duplicate of #919

@bgoscinski
Copy link

Confirmed on two machines: both on Windows 10 x64, yarn@0.16.1, node@6.9.1. I tried also on node@7.0.0 - same issue.

@samccone
Copy link
Member

#919

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants