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

Cannot fetch newman from yarn install #739

Closed
dpkshrma opened this issue Oct 11, 2016 · 9 comments
Closed

Cannot fetch newman from yarn install #739

dpkshrma opened this issue Oct 11, 2016 · 9 comments

Comments

@dpkshrma
Copy link

dpkshrma commented Oct 11, 2016

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

bug

What is the current behavior?

After resolution process is complete, yarn errors during fetch:

[2/4] Fetching packages...
error ENOENT: no such file or directory, scandir '/home/deepak/.yarn-cache/npm-postman-runtime-2.5.4/man'

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

  1. Mention newman as devDependency in package.json

      "devDependencies": {
         "newman": "^3.1.2",
          ...
    
  2. yarn install

What is the expected behavior?

Yarn should complete all 4 processes.

Please mention your node.js, yarn and operating system version.

yarn: v0.15.1
node: v6.3.1
OS: ubuntu 14.04

@dpkshrma dpkshrma changed the title Cannot Fetch Cannot fetch newman from yarn install Oct 11, 2016
@dpkshrma
Copy link
Author

On a sidenote, I haven't seen any other dependency causing such issue during install so far. But since, the npm modules are being fetched from registry.yarnpkg.com , so, I suspect, some modules might not have been indexed properly (just guessing here) which indicates there might be more packages which might be facing similar issue.

@cnadeau
Copy link

cnadeau commented Oct 14, 2016

I have the exact same issue with

yarn add jshint-reporter-bamboo

@houjunchen
Copy link

I have the same issue with loopback-connector-sendgrid:

error ENOENT: no such file or directory, scandir '/Users/abnerchen/.yarn-cache/npm-loopback-connector-sendgrid-2.0.6/bin'
    at Error (native)

@jaydp17
Copy link

jaydp17 commented Oct 20, 2016

+1 for loopback-connector-sendgrid
Facing the same issue 😕

@jaydp17
Copy link

jaydp17 commented Oct 23, 2016

@houjunchen I've found a workaround this problem, may be you can use it too.

We are installing a fork of loopback-connector-sendgrid directly from Github, and according to the package.json file in the Github repo, it is expecting a bin directory, which yarn checks and fails to find it, thus it's complaining.

What we did was, in our fork, we kept only the directories that are actually present in the repo.
It worked!! 🎉

@ghost
Copy link

ghost commented Nov 3, 2016

So, NPM must be ignoring bin and man directories that are specified that don't exist. Should Yarn do the same to catch the error when handling the bin and man directories?

Logging a warning might be nice, since the package might not work correctly if a bin directory was really expected to exist.

@busches
Copy link
Contributor

busches commented Dec 1, 2016

Is anyone still facing this issue with yarn@latest? I'm unable to reproduce with 0.17.10.

{                      
  "name": "issue739",  
  "version": "1.0.0",  
  "main": "index.js",  
  "license": "MIT",    
  "devDependencies": { 
     "newman": "^3.1.2"
 }                     
}
yarn
yarn install v0.17.10
info No lockfile found.
[1/4] Resolving packages...
warning newman > postman-runtime > node-uuid@1.4.7: use uuid module instead
warning newman > serialised-error > node-uuid@1.4.7: use uuid module instead
warning newman > postman-request > node-uuid@1.4.7: use uuid module instead
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 69.06s.

If you can reproduce the error, please provide a package.json file to replicate the issue.

@wolfgang42
Copy link

Can reproduce with yarn@0.17.10, but not yarn@0.18.1. This appears to have been fixed by #1663.

(Note that for newman specifically the bug is reproducible with newman@3.1.2 but not newman@^3.1.2.)

@arcanis
Copy link
Member

arcanis commented Apr 28, 2017

Closing, since this issue seems to have been fixed

@arcanis arcanis closed this as completed Apr 28, 2017
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

8 participants