I am having this same issue - been going crazy! Did you ever find a resolution? I would really like to be able to use elixir, but can't right now.
laravel-elixir which has dependency on [email protected] has issue with alpine linux
This is my first application with laravel framework. And I also new to node js and npm.
alpine linux - Linux 4.9.13-moby
node v6.7.0
npm v3.10.3
laravel - 5.3
[email protected] --> [email protected]
I am building laravel web app in docker. I also want to use gulpfile.
npm install --only=dev fails because [email protected] which I guess is I a dependency for laravel-elixir.
It is mentioned in various forums that node-sass has issues with alpine linux before node-sass@4.
This installation is successful - npm install [email protected]
But laravel-elixir is again trying to install [email protected] as its dependency , which results in failing as [email protected] and laravel-elixir
Question
-
Is there any way to change the dependency for laravel-elixir from [email protected] to node-sass@4.* . If yes, how ? And should I update the dependency.
-
What should be the correct to way to solve this issue?
Error details -
bash-4.3# npm install [email protected]
[email protected] install /var/www/html/mahadev/website/node_modules/gulp-sass/node_modules/node-sass node scripts/install.js
Cached binary found at /root/.npm/node-sass/3.13.1/linux-x64-48_binding.node
[email protected] postinstall /var/www/html/mahadev/website/node_modules/gulp-sass/node_modules/node-sass node scripts/build.js
Binary found at /var/www/html/mahadev/website/node_modules/gulp-sass/node_modules/node-sass/vendor/linux-x64-48/binding.node
Testing binary
Binary has a problem: Error: Error relocating
/var/www/html/mahadev/website/node_modules/gulp-sass/node_modules/node-sass/vendor/linux-x64-48/binding.node: __strtod_internal: symbol not found at Error (native) at Object.Module._extensions..node (module.js:583:18) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at module.exports (/var/www/html/mahadev/website/node_modules/gulp-sass/node_modules/node-sass/lib/binding.js:19:10) at Object. (/var/www/html/mahadev/website/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:14:35) at Module._compile (module.js:556:32)
Building the binary locally
Building: /usr/bin/node /var/www/html/mahadev/website/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok gyp verb cli [ '/usr/bin/node', gyp verb cli '/var/www/html/mahadev/website/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild',
gyp verb cli '--verbose',
gyp verb cli '--libsass_ext=',
gyp verb cli '--libsass_cflags=',
gyp verb cli '--libsass_ldflags=',
gyp verb cli '--libsass_library=' ]
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which succeeded python2 /usr/bin/python2
gyp verb check python version /usr/bin/python2 -c "import platform; print(platform.python_version());" returned: "2.7.12\n"
gyp verb get node dir no --target version specified, falling back to host node version: 6.7.0
gyp verb command install [ '6.7.0' ] gyp verb install input version string "6.7.0" gyp verb install installing version: 6.7.0 gyp verb install --ensure was passed, so won't reinstall if already installed gyp verb install version is already installed, need to check "installVersion" gyp verb got "installVersion" 9 gyp verb needs "installVersion" 9 gyp verb install version is good gyp verb get node dir target node version installed: 6.7.0 gyp verb build dir attempting to create "build" dir: /var/www/html/mahadev/website/node_modules/gulp-sass/node_modules/node-sass/build gyp verb build dir "build" dir needed to be created? /var/www/html/mahadev/website/node_modules/gulp-sass/node_modules/node-sass/build gyp verb build/config.gypi creating config file gyp verb build/config.gypi writing out config file: /var/www/html/mahadev/website/node_modules/gulp-sass/node_modules/node-sass/build/config.gypi gyp verb config.gypi checking for gypi file: /var/www/html/mahadev/website/node_modules/gulp-sass/node_modules/node-sass/config.gypi gyp verb common.gypi checking for gypi file: /var/www/html/mahadev/website/node_modules/gulp-sass/node_modules/node-sass/common.gypi gyp verb gyp gyp format was not specified; forcing "make" gyp info spawn /usr/bin/python2 gyp info spawn args [ '/var/www/html/mahadev/website/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 '/var/www/html/mahadev/website/node_modules/gulp-sass/node_modules/node-sass/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/var/www/html/mahadev/website/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/root/.node-gyp/6.7.0/include/node/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/6.7.0', gyp info spawn args '-Dnode_gyp_dir=/var/www/html/mahadev/website/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=node.lib', gyp info spawn args '-Dmodule_root_dir=/var/www/html/mahadev/website/node_modules/gulp-sass/node_modules/node-sass', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp verb command build [] gyp verb build type Release gyp verb architecture x64 gyp verb node dev dir /root/.node-gyp/6.7.0 gyp ERR! build error
gyp ERR! stack Error: not found: make gyp ERR! stack at getNotFoundError
(/var/www/html/mahadev/website/node_modules/which/which.js:13:12) gyp ERR! stack at F
(/var/www/html/mahadev/website/node_modules/which/which.js:68:19) gyp ERR! stack at E
(/var/www/html/mahadev/website/node_modules/which/which.js:80:29) gyp ERR! stack at
/var/www/html/mahadev/website/node_modules/which/which.js:89:16
gyp ERR! stack at /var/www/html/mahadev/website/node_modules/isexe/index.js:42:5 gyp ERR! stack at /var/www/html/mahadev/website/node_modules/isexe/mode.js:8:5 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Linux 4.9.13-moby
gyp ERR! command "/usr/bin/node"
"/var/www/html/mahadev/website/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /var/www/html/mahadev/website/node_modules/gulp-
sass/node_modules/node-sass
gyp ERR! node -v v6.7.0 gyp ERR! node-gyp -v v3.6.1 gyp ERR! not ok Build failed with error code: 1
[email protected] /var/www/html/mahadev/website `-- (empty)
npm ERR! Linux 4.9.13-moby npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "[email protected]" npm ERR! node v6.7.0 npm ERR! npm v3.10.3 npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR! npm ERR! Failed at the [email protected] postinstall script 'node scripts/build.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, 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 scripts/build.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs node-sass npm ERR! Or if that isn't available, 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! /var/www/html/mahadev/website/npm-debug.log npm ERR! code 1
Please help ! Thanks
Please or to participate in this conversation.