Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Conversation

@hmalphettes
Copy link

➜  tmp  npm i node-sass
|
> [email protected] install /Users/hugues/proj/tmp/node_modules/node-sass
> node scripts/install.js

Can not download file from https://raw.githubusercontent.com/sass/node-sass-binaries/v2.0.1/darwin-x64-iojs-1.4/binding.node

> [email protected] postinstall /Users/hugues/proj/tmp/node_modules/node-sass
> node scripts/build.js

module.js:322
    throw err;
          ^
Error: Cannot find module '/Users/hugues/proj/tmp/node_modules/node-sass/node_modules/pangyp/bin/node-gyp'
    at Function.Module._resolveFilename (module.js:320:15)
    at Function.Module._load (module.js:262:25)
    at Function.Module.runMain (module.js:485:10)
    at startup (node.js:112:16)
    at node.js:863:3
Build failed

pangyp is assumed to be installed as a local module by script/build.js.
But it is only installed for development.

This PR fixes that issue.

@hmalphettes hmalphettes changed the title pangyp required as post-install from build.js pangyp required at runtime for post-install from build.js Feb 27, 2015
@hmalphettes
Copy link
Author

Well, when I am using the patched module with iojs-v1.4.1 from my main application pangyp behaves strangely.
I ended-up reverting back to using the standard-node-gyp and all is well:
https://github.com/hmalphettes/node-sass/commit/5a113952bf517ebb96f50204431b8f2d8844500d

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant