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

npm install test fails when run in /tmp #1809

Closed
al-k21 opened this issue Feb 21, 2018 · 0 comments
Closed

npm install test fails when run in /tmp #1809

al-k21 opened this issue Feb 21, 2018 · 0 comments

Comments

@al-k21
Copy link
Contributor

al-k21 commented Feb 21, 2018

Running this:

wget https://github.com/browserify/browserify/archive/61c19943e78a5d7663603b43ad6c31985c9186cc.tar.gz # latest tar.gz (the one citgm pulls)
tar -xf 61c19943e78a5d7663603b43ad6c31985c9186cc.tar.gz
cd browserify-61c19943e78a5d7663603b43ad6c31985c9186cc
npm it

succeeds when run in /home/.. but fails in /tmp.

console output
test/bare.js ........................................ 12/13
  bare inserts dynamic __filename,__dirname
  not ok should be equivalent
    +++ found                                                                    
    --- wanted                                                                   
     [                                                                           
    -  "/tmp/browserify-test118121-19148-1hneghe.ahkubfyldi"                     
    -  "/tmp/browserify-test118121-19148-1hneghe.ahkubfyldi/dirname-filename.js"
    +  "/browserify-test118121-19148-1hneghe.ahkubfyldi"                         
    +  "/browserify-test118121-19148-1hneghe.ahkubfyldi/dirname-filename.js"     
     ]                                                                           
    at:
      line: 128
      column: 23
      file: test/bare.js
      function: log
    stack: >
      Object.log (test/bare.js:128:23)
    
      Object.<anonymous> (evalmachine.<anonymous>:3:9)
    
      Object.1.path (evalmachine.<anonymous>:8:4)
    
      s (evalmachine.<anonymous>:1:203)
    
      e (evalmachine.<anonymous>:1:374)
    
      evalmachine.<anonymous>:1:403
    
      test/bare.js:123:12
    
      ConcatStream.<anonymous> (node_modules/concat-stream/index.js:36:43)
    
      finishMaybe (node_modules/readable-stream/lib/_stream_writable.js:620:14)
    
      endWritable (node_modules/readable-stream/lib/_stream_writable.js:628:3)
    
      ConcatStream.Writable.end
      (node_modules/readable-stream/lib/_stream_writable.js:584:41)

Do you know why is it failing in /tmp? @substack
I am happy to help with this.

Ref: nodejs/citgm#545

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

No branches or pull requests

1 participant