[GH-ISSUE #649] Error installing node packages on digital ocean #463

Closed
opened 2026-02-26 02:33:17 +03:00 by kerem · 2 comments
Owner

Originally created by @mfissehaye on GitHub (Sep 16, 2017).
Original GitHub issue: https://github.com/koel/koel/issues/649

I end up getting this in several attempts.

[4/4] Building fresh packages...
[1/2] ⡀ node-sass: g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FIL
[2/2] ⡀ node-sass: g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FIL
[-/2] ⡀ waiting...
[-/2] ⢀ waiting...
error /var/www/html/afrosic/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: /var/www/html/afrosic/node_modules/node-sass
Output:
Building: /home/mfissehaye/.nvm/versions/node/v8.5.0/bin/node /var/www/html/afrosic/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 [ '/home/mfissehaye/.nvm/versions/node/v8.5.0/bin/node',
gyp verb cli   '/var/www/html/afrosic/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 node-gyp@3.5.0
gyp info using node@8.5.0 | 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: 8.5.0
gyp verb command install [ '8.5.0' ]
gyp verb install input version string "8.5.0"
gyp verb install installing version: 8.5.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: 8.5.0
gyp verb build dir attempting to create "build" dir: /var/www/html/afrosic/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created? /var/www/html/afrosic/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/afrosic/node_modules/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file: /var/www/html/afrosic/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /var/www/html/afrosic/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/afrosic/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/afrosic/node_modules/node-sass/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/var/www/html/afrosic/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/mfissehaye/.node-gyp/8.5.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=/home/mfissehaye/.node-gyp/8.5.0',
gyp info spawn args   '-Dnode_gyp_dir=/var/www/html/afrosic/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=node.lib',
gyp info spawn args   '-Dmodule_root_dir=/var/www/html/afrosic/node_modules/node-sass',
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 /home/mfissehaye/.node-gyp/8.5.0
gyp verb `which` succeeded for `make` /usr/bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/var/www/html/afrosic/node_modules/node-sass/build'
  g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION="3.3.6"' -I/home/mfissehaye/.node-gyp/8.5.0/include/node -I/home/mfissehaye/.node-gyp/8.5.0/src -I/home/mfissehaye/.node-gyp/8.5.0/deps/uv/include -I/home/mfissehaye/.node-gyp/8.5.0/deps/v8/include -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu++0x -std=c++0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/ast.o.d.raw   -c -o Release/obj.target/libsass/src/libsass/src/ast.o ../src/libsass/src/ast.cpp
virtual memory exhausted: Cannot allocate memory
src/libsass.target.mk:139: recipe for target 'Release/obj.target/libsass/src/libsass/src/ast.o' failed
make: Leaving directory '/var/www/html/afrosic/node_modules/node-sass/build'
make: *** [Release/obj.target/libsass/src/libsass/src/ast.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/var/www/html/afrosic/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.0-93-generic
gyp ERR! command "/home/mfissehaye/.nvm/versions/node/v8.5.0/bin/node" "/var/www/html/afrosic/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /var/www/html/afrosic/node_modules/node-sass
gyp ERR! node -v v8.5.0

Originally created by @mfissehaye on GitHub (Sep 16, 2017). Original GitHub issue: https://github.com/koel/koel/issues/649 I end up getting this in several attempts. ``` [4/4] Building fresh packages... [1/2] ⡀ node-sass: g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FIL [2/2] ⡀ node-sass: g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FIL [-/2] ⡀ waiting... [-/2] ⢀ waiting... error /var/www/html/afrosic/node_modules/node-sass: Command failed. Exit code: 1 Command: node scripts/build.js Arguments: Directory: /var/www/html/afrosic/node_modules/node-sass Output: Building: /home/mfissehaye/.nvm/versions/node/v8.5.0/bin/node /var/www/html/afrosic/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 [ '/home/mfissehaye/.nvm/versions/node/v8.5.0/bin/node', gyp verb cli '/var/www/html/afrosic/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 node-gyp@3.5.0 gyp info using node@8.5.0 | 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: 8.5.0 gyp verb command install [ '8.5.0' ] gyp verb install input version string "8.5.0" gyp verb install installing version: 8.5.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: 8.5.0 gyp verb build dir attempting to create "build" dir: /var/www/html/afrosic/node_modules/node-sass/build gyp verb build dir "build" dir needed to be created? /var/www/html/afrosic/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/afrosic/node_modules/node-sass/build/config.gypi gyp verb config.gypi checking for gypi file: /var/www/html/afrosic/node_modules/node-sass/config.gypi gyp verb common.gypi checking for gypi file: /var/www/html/afrosic/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/afrosic/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/afrosic/node_modules/node-sass/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/var/www/html/afrosic/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/home/mfissehaye/.node-gyp/8.5.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=/home/mfissehaye/.node-gyp/8.5.0', gyp info spawn args '-Dnode_gyp_dir=/var/www/html/afrosic/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=node.lib', gyp info spawn args '-Dmodule_root_dir=/var/www/html/afrosic/node_modules/node-sass', 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 /home/mfissehaye/.node-gyp/8.5.0 gyp verb `which` succeeded for `make` /usr/bin/make gyp info spawn make gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory '/var/www/html/afrosic/node_modules/node-sass/build' g++ '-DNODE_GYP_MODULE_NAME=libsass' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DLIBSASS_VERSION="3.3.6"' -I/home/mfissehaye/.node-gyp/8.5.0/include/node -I/home/mfissehaye/.node-gyp/8.5.0/src -I/home/mfissehaye/.node-gyp/8.5.0/deps/uv/include -I/home/mfissehaye/.node-gyp/8.5.0/deps/v8/include -I../src/libsass/include -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -std=gnu++0x -std=c++0x -fexceptions -frtti -MMD -MF ./Release/.deps/Release/obj.target/libsass/src/libsass/src/ast.o.d.raw -c -o Release/obj.target/libsass/src/libsass/src/ast.o ../src/libsass/src/ast.cpp virtual memory exhausted: Cannot allocate memory src/libsass.target.mk:139: recipe for target 'Release/obj.target/libsass/src/libsass/src/ast.o' failed make: Leaving directory '/var/www/html/afrosic/node_modules/node-sass/build' make: *** [Release/obj.target/libsass/src/libsass/src/ast.o] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/var/www/html/afrosic/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at emitTwo (events.js:125:13) gyp ERR! stack at ChildProcess.emit (events.js:213:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 4.4.0-93-generic gyp ERR! command "/home/mfissehaye/.nvm/versions/node/v8.5.0/bin/node" "/var/www/html/afrosic/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /var/www/html/afrosic/node_modules/node-sass gyp ERR! node -v v8.5.0 ```
kerem closed this issue 2026-02-26 02:33:17 +03:00
Author
Owner

@phanan commented on GitHub (Sep 17, 2017):

…You said it yourself: "Error installing node packages on digital ocean." I don't think it has anything to do with Koel.

<!-- gh-comment-id:330034531 --> @phanan commented on GitHub (Sep 17, 2017): …You said it yourself: "Error installing _node packages_ on _digital ocean_." I don't think it has anything to do with Koel.
Author
Owner

@wesgarrison commented on GitHub (Apr 21, 2020):

Future googlers looking for a similar thing:

virtual memory exhausted: Cannot allocate memory

You probably want to up the memory size of your VM. Worked for me getting libsass & sassc working.

<!-- gh-comment-id:617215274 --> @wesgarrison commented on GitHub (Apr 21, 2020): Future googlers looking for a similar thing: `virtual memory exhausted: Cannot allocate memory` You probably want to up the memory size of your VM. Worked for me getting libsass & sassc working.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#463
No description provided.