alexanderGugel / ied

:package: Like npm, but faster - an alternative package manager for Node
http://alexandergugel.github.io/ied
MIT License
1.99k stars 53 forks source link

[bug] runtime error while installing node-sass #152

Closed ZuBB closed 8 years ago

ZuBB commented 8 years ago

Recently in my company we switched to new approach of building subapps and that caused increase of build time. I am trying to find any space to improve and faced with this

Env:

vv@e5520 /tmp $ mkdir nd_ied-test
vv@e5520 /tmp $ cd !$
cd nd_ied-test
vv@e5520 /tmp/nd_ied-test $ ied init
name: (nd_ied-test) 
version: (1.0.0) 
description: 
entry point: (index.js) 
test command: 
git repository: 
keywords: 
author: 
license: (ISC) 
About to write to /tmp/nd_ied-test/package.json:

{
  "name": "nd_ied-test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC"
}

Is this ok? (yes) y
vv@e5520 /tmp/nd_ied-test $ ied i -D node-sass
🕙  76.82% resolving is-finite@^1.0.0/home/vv/.nvm/versions/node/v4.2.2/lib/node_modules/ied/node_modules/rxjs/Observer.js:5
    error: function (err) { throw err; },
                            ^

Error: EXDEV: cross-device link not permitted, rename '/home/vv/.ied_cache/.tmp/7897c762-4825-498c-9be8-c35b824ea34b' -> '/tmp/nd_ied-test/node_modules/.cas/b968c6b0a04384324902e8bf1a5df32579a450fe/package'
    at Error (native)
vv@e5520 /tmp/nd_ied-test $ 
mgcrea commented 8 years ago

Issue is cross-device link not permitted.

You could try to use export IED_CACHE_DIR=/tmp/.ied_cache, would be on the same device and would fix your issue.

ZuBB commented 8 years ago

Do you know if authors have any plans to implement smth that allow ied users have installation of nodesass more smooth?

ZuBB commented 8 years ago

Just for the record (and as a hint for others): /tmp partition on my laptop was on separate device (tmpfs)