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

npm ERR! Failed at the [email protected] install script. #428

Closed
Jakobud opened this issue Sep 22, 2014 · 44 comments
Closed

npm ERR! Failed at the [email protected] install script. #428

Jakobud opened this issue Sep 22, 2014 · 44 comments

Comments

@Jakobud
Copy link

Jakobud commented Sep 22, 2014

# npm install node-sass
Results in:

...
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.29"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/vhosts/my_project/node_modules/node-sass/.node-gyp"
gyp http GET http://nodejs.org/dist/v0.10.29/node-v0.10.29.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.29/node-v0.10.29.tar.gz
Traceback (most recent call last):
  File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in <module>
    sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 2.6.32-358.18.1.el6.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /vhosts/my_project/node_modules/node-sass
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
Build failed
npm ERR! [email protected] install: `node build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 2.6.32-358.18.1.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "install" "node-sass"
npm ERR! cwd /vhosts/my_project
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /vhosts/my_project/npm-debug.log
npm ERR! not ok code 0
# node -v
v0.10.29

# npm -v
1.4.4
@hirokith
Copy link

Same problem encounted!

@andrew
Copy link
Contributor

andrew commented Sep 22, 2014

Can you try upgrading node-gyp as well?

npm install -g node-gyp

@hirokith
Copy link

@andrew , I've tried but the error still exsits.

@am11
Copy link
Contributor

am11 commented Sep 22, 2014

Delete the build/ directory and rerun:

node-gyp rebuild
node sass.js
npm install
npm test

@am11
Copy link
Contributor

am11 commented Sep 22, 2014

Sorry the last reply was targeted for #427.

@blimmer
Copy link

blimmer commented Sep 22, 2014

I'm running into the same problem, even after deleting build and upgrading node-gyp.

  1) precision support should render when precision is specified:

      Uncaught AssertionError: ".test {\n  margin: 1.23457 px; }\n" == ".test {\n  margin: 1.23456789 px; }\n"
      + expected - actual

       .test {
      +  margin: 1.23456789 px; }
      -  margin: 1.23457 px; }

      at sass.render.success (node_modules/sass-brunch/node_modules/node-sass/test/test.js:291:21)
      at onSuccess (node_modules/sass-brunch/node_modules/node-sass/sass.js:87:18)

@Jakobud
Copy link
Author

Jakobud commented Sep 22, 2014

Yeah this is pretty much a showstopper. I'm trying to use gulp-sass which depends on node-sass ^0.9. Since, node-sass updated to 0.9.4 last night, it tries to install that version.

@blimmer
Copy link

blimmer commented Sep 22, 2014

I agree with @Jakobud , this is a big problem for us by way of sass-brunch. We had to peg an old version of sass-brunch (uses an older version of node-sass) to work around this issue.

@Jakobud
Copy link
Author

Jakobud commented Sep 22, 2014

@blimmer I figured out a temporary workaround until 0.9.4 is fixed.

In my package.json I added:

"node-sass": "0.9.3",

This forces node-sass 0.9.3 to be installed on the top level. Then, any other node modules that are installed that depend on node-sass, won't try to install the latest broken 0.9.4 node-sass.

I'm not sure if order matters when specifying dependencies in your package.json, but I added the node-sass before gulp-sass (which depends on node-sass) and it worked fine.

@andrew
Copy link
Contributor

andrew commented Sep 22, 2014

I'm just investigating this now, I have a hunch that everyone who's running into this issue is using a mac, if so I think I know what the fix is.

@blimmer
Copy link

blimmer commented Sep 22, 2014

Yep, Mac OS X 10.9.5.

On Mon, Sep 22, 2014 at 10:35 AM, Andrew Nesbitt [email protected]
wrote:

I'm just investigating this now, I have a hunch that everyone who's
running into this issue is using a mac, if so I think I know what the fix
is.


Reply to this email directly or view it on GitHub
#428 (comment).

Ben Limmer
Software Developer
[email protected]

@nwhite89
Copy link

👍 getting this problem as well, use grunt-sass which in turn is set to ^0.9.0

Also @andrew I'm running into this error on 2 Ubuntu 13.10 machines

@andrew
Copy link
Contributor

andrew commented Sep 22, 2014

I've just published v0.9.5-rc1, can you give that a try?

npm install [email protected]

@nwhite89
Copy link

I still get the same error i had previously

Running "sass:dev" (sass) task
Warning: ENOENT, open '/home/nwhite/Sites/rbx_ui/src/css/src/css/login.css.map' Use --force to continue.

Aborted due to warnings.
├─┬ [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]

@nwhite89
Copy link

although actually @andrew apologies looks like my error with it is slightly different it does install, but then has issues with mapping. Sorry hadn't realised

@Jakobud
Copy link
Author

Jakobud commented Sep 22, 2014

I'm running into the issue on a CentOS 6.3 server.

@ndhoule
Copy link
Contributor

ndhoule commented Sep 22, 2014

I'm still getting the same error using 0.9.5-rc1 on OS X 10.9.4, Node v0.10.31. Rebuilding via node-gyp rebuild fixes the issue.

I wasn't able to reproduce the failing spec on Ubuntu 14.04, Node v0.10.32; I tried both npm installing and cloning down the repo.

@am11
Copy link
Contributor

am11 commented Sep 22, 2014

@Jakobud, you need to have python v2.7 installed in order to build the binaries (v3.x.x is not supported by node-gyp).

@blimmer
Copy link

blimmer commented Sep 22, 2014

@andrew 0.9.5-rc1 fixes the issue for me!

EDIT (clarification): I ran npm install [email protected] and it worked. Running npm install [email protected] shows the problem.

@Jakobud
Copy link
Author

Jakobud commented Sep 23, 2014

@am11 Okay thanks. CentOS 6.3's Python is 2.6.6 by default. I will update it and see. The thing is, I can install node-sass 0.9.3 just fine.

@am11
Copy link
Contributor

am11 commented Sep 23, 2014

Probably because I built *nix x86-32 and x86-64 binaries on Ubuntu 12 via vagrant (using sudo; which was my first hunch for permission error -- but not anymore, it is on python now :D), and on installing the binaries it checks the compatibility and try to rebuild it if there is an issue.

Architecture mismatch or something..?

@zet4
Copy link

zet4 commented Sep 26, 2014

Hi, new here, wanted to install node-sass to play around with it, after seeing as it didn't want to install for me I found this thread, still dosen't work with the version @andrew has posted.
I am running a vps with debian wheezy.

root@Orion:~# npm install -g [email protected]
npm install -g [email protected]
/usr/local/bin/node-sass -> /usr/local/lib/node_modules/node-sass/bin/node-sass

> [email protected] install /usr/local/lib/node_modules/node-sass
> node build.js

child_process: customFds option is deprecated, use stdio instead.
gyp ERR! configure error
gyp ERR! stack Error: "pre" versions of node cannot be installed, use the --nodedir flag instead
gyp ERR! stack     at install (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:66:16)
gyp ERR! stack     at Object.self.commands.(anonymous function) [as install] (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js:66:37)
gyp ERR! stack     at getNodeDir (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:152:20)
gyp ERR! stack     at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:95:9
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:723:7)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at maybeClose (child_process.js:1000:16)
gyp ERR! stack     at Socket.<anonymous> (child_process.js:1168:11)
gyp ERR! stack     at Socket.emit (events.js:107:17)
gyp ERR! stack     at Pipe.close (net.js:461:12)
gyp ERR! System Linux 2.6.32-042stab093.4
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/node-sass
gyp ERR! node -v v0.13.0-pre
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
Build failed

npm ERR! [email protected] install: `node build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.32-042stab093.4
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "[email protected]"
npm ERR! cwd /root
npm ERR! node -v v0.13.0-pre
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
root@Orion:~# npm --version
npm --version
1.4.28
root@Orion:~# node --version
node --version
v0.13.0-pre

@am11
Copy link
Contributor

am11 commented Sep 26, 2014

@ZetaHunter, does this help: http://stackoverflow.com/a/12997047/863980?

@zet4
Copy link

zet4 commented Sep 26, 2014

@am11, the thing is, I installed nodejs using apt-get :/ and if I did find where it put the binary, I doubt I actually have source anywhere.
I am so very new to all of this. I just got around to setting up the apache to proxy the traffic on one of the domains to the 8001 port when this tid-bit issue comes up :/
But now I must go rest for today. Hopefully I can find a solution tomorrow.

@am11
Copy link
Contributor

am11 commented Sep 26, 2014

@ZetaHunter, you can run this commend to find out: whereis node. 😄

It may give you multiple paths. Select the one with bin. For instance: /usr/bin/node.

@zet4
Copy link

zet4 commented Sep 27, 2014

@am11, I seem to have fixed my case by using

npm install -g n
n stable

which just installed the stable node version.
thanks for the help am11!

@andrew
Copy link
Contributor

andrew commented Oct 6, 2014

I've just released v0.9.6 which should solve these install issues.

@am11
Copy link
Contributor

am11 commented Oct 8, 2014

@Jakobud and other folks who were having this issue, is this fixed by v0.9.6?

@am11
Copy link
Contributor

am11 commented Oct 8, 2014

FWIW, after 0.9.6, we would have to update our build script to run gcc with -std=c++11 switch (since libsass is now using C++11 features). For in place upgrade of gcc, see out .travis.yml file.

@Jakobud
Copy link
Author

Jakobud commented Oct 9, 2014

Still an issue with 0.9.6 for me:

# npm update
...
...
...
> [email protected] install /vhosts/mywebsite/node_modules/gulp-sass/node_modules/node-sass
> node build.js

`linux-x64-v8-3.14` exists; testing
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.29"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/vhosts/mywebsite/node_modules/gulp-sass/node_modules/node-sass/.node-gyp"
gyp http GET http://nodejs.org/dist/v0.10.29/node-v0.10.29.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.29/node-v0.10.29.tar.gz
Traceback (most recent call last):
  File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in <module>
    sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 2.6.32-358.18.1.el6.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /vhosts/mywebsite/node_modules/gulp-sass/node_modules/node-sass
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
Build failed
npm ERR! [email protected] install: `node build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 2.6.32-358.18.1.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "update"
npm ERR! cwd /vhosts/mywebsite
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /vhosts/mywebsite/npm-debug.log
npm ERR! not ok code 0

My package.json:

{
  "dependencies": {
    "gulp": "*",
    "gulp-sass": "*",
    "gulp-autoprefixer": "0.0.9",
    "gulp-concat": "*",
    "gulp-uglify": "*",
    "gulp-util": "*",
    "gulp-plumber": "*"
  }
}

The dependant package is gulp-sass. The only way I can still get around this problem is to add node-sass 0.9.3 to package.json so that 0.9.6 isn't installed since it fails.

Is there any other debug information I can give you guys to help you on this one? I'd like to do whatever I can.

@andrew
Copy link
Contributor

andrew commented Oct 9, 2014

@Jakobud what operating system did you get that error on? It looks like a node-gyp error, possibly related to permissions.

@Jakobud
Copy link
Author

Jakobud commented Oct 9, 2014

CentOS 6.4. Yeah I saw that permission error. Not sure how root can have permission issues anywhere... It's strange cause this problem doesn't come up at all using node-sass 0.9.3.

@am11
Copy link
Contributor

am11 commented Oct 14, 2014

It seems like a node-gyp issue. Perhaps this is related: nodejs/node-gyp#454.

@am11
Copy link
Contributor

am11 commented Oct 14, 2014

So going by last comment there; does this help:

sudo npm install --unsafe-perm --verbose -g node-sass 
# -g is optional and you can give it a try without sudo

@Jakobud
Copy link
Author

Jakobud commented Oct 14, 2014

# npm install --unsafe-perm --verbose node-sass

...
...
...
gyp verb tarball done parsing tarball
gyp verb get node dir target node version installed: 0.10.29
gyp verb build dir attempting to create "build" dir: /vhosts/tmp/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created? /vhosts/tmp/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /vhosts/tmp/node_modules/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file: /vhosts/tmp/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /vhosts/tmp/node_modules/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn python
gyp info spawn args [ '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/vhosts/tmp/node_modules/node-sass/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/root/.node-gyp/0.10.29/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/root/.node-gyp/0.10.29',
gyp info spawn args   '-Dmodule_root_dir=/vhosts/tmp/node_modules/node-sass',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.' ]
Traceback (most recent call last):
  File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in <module>
    sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:809:12)
gyp ERR! System Linux 2.6.32-358.18.1.el6.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /vhosts/tmp/node_modules/node-sass
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
Build failed
npm verb unsafe-perm in lifecycle true
npm info [email protected] Failed to exec install script
npm info /vhosts/tmp/node_modules/node-sass unbuild
npm info preuninstall [email protected]
npm info uninstall [email protected]
npm verb true,/vhosts/tmp/node_modules,/vhosts/tmp/node_modules unbuild [email protected]
npm verb /vhosts/tmp/node_modules/.bin,[object Object] binRoot
npm info postuninstall [email protected]
npm ERR! [email protected] install: `node build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 2.6.32-358.18.1.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "install" "--unsafe-perm" "--verbose" "node-sass"
npm ERR! cwd /vhosts/tmp
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm verb exit [ 1, true ]
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /vhosts/tmp/npm-debug.log
npm ERR! not ok code 0

Not sure if this is a node-sass problem is a gyp problem.

Am I the only one having this issue?

@am11
Copy link
Contributor

am11 commented Oct 14, 2014

Which present another node-gyp issue: nodejs/node-gyp#363.

Go through the comments. Seems like the solutions by @laithshadeed and @rex worked for others.

@rex
Copy link

rex commented Oct 14, 2014

This definitely seems related to the node-gyp/gyp weirdness that we were all experiencing in nodejs/node-gyp#363. As @TooTallNate pointed out, though (nodejs/node-gyp#363 (comment)), this particular bug should already be resolved as of node-gyp v0.13.1.

@Jakobud I would recommend giving this a shot: nodejs/node-gyp#363 (comment)

The credit for that fix goes to @springmeyer, I just elaborated on what he suggested here: nodejs/node-gyp#363 (comment)

Additional possible fixes:

@namuol - nodejs/node-gyp#363 (comment)
@steve-jansen - nodejs/node-gyp#363 (comment)
@compact - nodejs/node-gyp#363 (comment)

@springmeyer, your teensy-tiny comment continues to save lives 🍻❗

Side Note: Holy shit that was a lot of name dropping. Fuck it. Credit where credit is due.

@Jakobud
Copy link
Author

Jakobud commented Oct 14, 2014

@rex I did try nodejs/node-gyp#363 (comment) but after renaming gyp to gyp_backup and confirming that python could not find it, this completely messed up my node/npm install. npm would no longer run:

# npm install node-sass

module.js:340
    throw err;
          ^
Error: Cannot find module '../lib/npm.js'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at /usr/lib/node_modules/npm/bin/npm-cli.js:24:11
    at Object.<anonymous> (/usr/lib/node_modules/npm/bin/npm-cli.js:86:3)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)

Next I decided to completely remove node and npm:

# yum remove npm nodejs

Then clear out the old node_modules directory:

# rm -rf /usr/lib/node_modules/

Finally reinstall:

# yum install nodejs npm

And now... well everything seems to work. However I do still get that permission denied issue with gyp. Doesn't make sense at all how root cannot have permission to a directory:

# npm install node-sass
/
> [email protected] install /vhosts/tmp/node_modules/node-sass
> node build.js

`linux-x64-v8-3.14` exists; testing
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.30"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/vhosts/tmp/node_modules/node-sass/.node-gyp"
make: Entering directory `/vhosts/tmp/node_modules/node-sass/build'
  CXX(target) Release/obj.target/binding/binding.o
  CXX(target) Release/obj.target/binding/sass_context_wrapper.o
  CXX(target) Release/obj.target/binding/libsass/ast.o
  CXX(target) Release/obj.target/binding/libsass/base64vlq.o
  CXX(target) Release/obj.target/binding/libsass/bind.o
  CXX(target) Release/obj.target/binding/libsass/constants.o
  CXX(target) Release/obj.target/binding/libsass/context.o
  CXX(target) Release/obj.target/binding/libsass/contextualize.o
  CXX(target) Release/obj.target/binding/libsass/copy_c_str.o
  CXX(target) Release/obj.target/binding/libsass/error_handling.o
  CXX(target) Release/obj.target/binding/libsass/eval.o
  CXX(target) Release/obj.target/binding/libsass/expand.o
  CXX(target) Release/obj.target/binding/libsass/extend.o
  CXX(target) Release/obj.target/binding/libsass/file.o
  CXX(target) Release/obj.target/binding/libsass/functions.o
  CXX(target) Release/obj.target/binding/libsass/inspect.o
  CXX(target) Release/obj.target/binding/libsass/output_compressed.o
  CXX(target) Release/obj.target/binding/libsass/output_nested.o
  CXX(target) Release/obj.target/binding/libsass/parser.o
  CXX(target) Release/obj.target/binding/libsass/prelexer.o
  CXX(target) Release/obj.target/binding/libsass/sass.o
  CXX(target) Release/obj.target/binding/libsass/sass_interface.o
  CXX(target) Release/obj.target/binding/libsass/source_map.o
  CXX(target) Release/obj.target/binding/libsass/to_c.o
  CXX(target) Release/obj.target/binding/libsass/to_string.o
  CXX(target) Release/obj.target/binding/libsass/units.o
  CXX(target) Release/obj.target/binding/libsass/utf8_string.o
  CXX(target) Release/obj.target/binding/libsass/util.o
  CXX(target) Release/obj.target/binding/libsass/sass2scss/sass2scss.o
  SOLINK_MODULE(target) Release/obj.target/binding.node
  SOLINK_MODULE(target) Release/obj.target/binding.node: Finished
  COPY Release/binding.node
make: Leaving directory `/vhosts/tmp/node_modules/node-sass/build'
Installed in `/vhosts/tmp/node_modules/node-sass/bin/linux-x64-v8-3.14/binding.node`
[email protected] node_modules/node-sass
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

I'm still not clear on what the problem was. I assume it was some out of date node module or something that got updated to the right version when I reinstalled nodejs and npm. I'm not sure.

@rex
Copy link

rex commented Oct 14, 2014

@Jakobud hmm, that is weird. I'm really not sure why on earth the missing gyp python module would have any effect whatsoever on the ability of npm to operate.

I'm glad you got it back working, though!

@am11
Copy link
Contributor

am11 commented Oct 22, 2014

@rex, actually that is another issue. On installation, it should use the prebuild binaries. However, in case the binary is flawed, then as a fallback the rebuild script is kicked in.

Which means our binaries are flawed for certain architectures. For that matter we need to add some VMs to out build process and automate it.

Lets track this issue further at #467.

@am11 am11 closed this as completed Oct 22, 2014
@rex
Copy link

rex commented Oct 22, 2014

@am11 That sounds like a fantastic idea. Good luck! I'm not sure how much help I can be going forward but please don't hesitate to mention me if you'd like another set of eyes on an issue!

@Jakobud
Copy link
Author

Jakobud commented Oct 29, 2014

Ugh, getting this error again but this time slightly different. Is this a node-sass issue or gyp issue? Doesn't seem to be any support from the gyp maintainer in their repo:

> [email protected] install /vhosts/mywebsite/node_modules/gulp-sass/node_modules/node-sass
> node build.js

`linux-x64-v8-3.14` exists; testing
make: Entering directory `/vhosts/mywebsite/node_modules/gulp-sass/node_modules/node-sass/build'
  CXX(target) Release/obj.target/binding/binding.o
cc1plus: error: unrecognized command line option "-std=c++11"
cc1plus: error: unrecognized command line option "-std=c++11"
make: *** [Release/obj.target/binding/binding.o] Error 1
make: Leaving directory `/vhosts/mywebsite/node_modules/gulp-sass/node_modules/node-sass/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Linux 2.6.32-358.18.1.el6.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /vhosts/mywebsite/node_modules/gulp-sass/node_modules/node-sass
gyp ERR! node -v v0.10.30
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
Build failed
npm ERR! Linux 2.6.32-358.18.1.el6.x86_64
npm ERR! argv "node" "/usr/bin/npm" "update"
npm ERR! node v0.10.30
npm ERR! npm  v2.1.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /vhosts/mywebsite/npm-debug.log

@andrew
Copy link
Contributor

andrew commented Oct 29, 2014

It's a node-sass issue, I recommend going back to 1.0.3 until we can sort out the install issues

@nschonni
Copy link
Contributor

@Jakobud Libsass now requires that the C++ complier support C++11 syntax. The line:

cc1plus: error: unrecognized command line option "-std=c++11"
cc1plus: error: unrecognized command line option "-std=c++11"

You can use the approach that we use for Travis to get a supported gcc version https://github.com/sass/node-sass/blob/master/.travis.yml#L10

I'm going to lock this issue since was spun off a previous release and there are newer build issue threads that should be used to track the issues

@andrew I think the README probably needs to be updated to reflect the change.

@sass sass locked and limited conversation to collaborators Oct 29, 2014
michaelzoidl pushed a commit to efacilitation/eventric that referenced this issue Nov 3, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants