Closed dalipkumar703 closed 7 years ago
Hi @dalip123
Are you sure you have the dependencies installed?
-Ramin
yeah i installed zopim sdk file https://dev.zopim.com/web-sdk/1.1.3/web-sdk.js and other dependency from npm install.
Hi @dalip123,
Could you try running npm install node-sass
and see if it works?
Otherwise, can you try rm -rf node_modules && npm install
?
Jun Yi
I tried three times but still got npm WARN prefer global node-gyp@3.6.2 should be installed with -g
node-sass@3.13.1 install /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-57_binding.node Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-57_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
node-sass@3.13.1 postinstall /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass node scripts/build.js
Building: /usr/bin/nodejs /home/dalip/Desktop/chat-web-sdk-sample-app/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/nodejs',
gyp verb cli '/home/dalip/Desktop/chat-web-sdk-sample-app/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.6.2
gyp info using node@8.0.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.6\n"
gyp verb get node dir no --target version specified, falling back to host node version: 8.0.0
gyp verb command install [ '8.0.0' ]
gyp verb install input version string "8.0.0"
gyp verb install installing version: 8.0.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.0.0
gyp verb build dir attempting to create "build" dir: /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created? /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file: /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /home/dalip/Desktop/chat-web-sdk-sample-app/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 [ '/home/dalip/Desktop/chat-web-sdk-sample-app/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 '/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/dalip/.node-gyp/8.0.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/dalip/.node-gyp/8.0.0',
gyp info spawn args '-Dnode_gyp_dir=/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/dalip/.node-gyp/8.0.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/dalip/Desktop/chat-web-sdk-sample-app/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 /home/dalip/.node-gyp/8.0.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 /home/dalip/Desktop/chat-web-sdk-sample-app/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/dalip/.node-gyp/8.0.0/include/node -I/home/dalip/.node-gyp/8.0.0/src -I/home/dalip/.node-gyp/8.0.0/deps/uv/include -I/home/dalip/.node-gyp/8.0.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 make: g++: Command not found make: *** [Release/obj.target/libsass/src/libsass/src/ast.o] Error 127 make: Leaving directory
/home/dalip/Desktop/chat-web-sdk-sample-app/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 (/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-gyp/lib/build.js:258: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:197:12)
gyp ERR! System Linux 3.13.0-24-generic
gyp ERR! command "/usr/bin/nodejs" "/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass
gyp ERR! node -v v8.0.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@3.13.1 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@3.13.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /home/dalip/.npm/_logs/2017-07-19T10_22_56_454Z-debug.log dalip@dalip-Inspiron-N5010:~/Desktop/chat-web-sdk-sample-app$ cd .. dalip@dalip-Inspiron-N5010:~/Desktop$ sudo chmod 777 chat-web-sdk-sample-app dalip@dalip-Inspiron-N5010:~/Desktop$ cd chat-web-sdk-sample-app dalip@dalip-Inspiron-N5010:~/Desktop/chat-web-sdk-sample-app$ sudo npm install npm WARN prefer global node-gyp@3.6.2 should be installed with -g
node-sass@3.13.1 install /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-57_binding.node Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-57_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
node-sass@3.13.1 postinstall /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass node scripts/build.js
Building: /usr/bin/nodejs /home/dalip/Desktop/chat-web-sdk-sample-app/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/nodejs',
gyp verb cli '/home/dalip/Desktop/chat-web-sdk-sample-app/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.6.2
gyp info using node@8.0.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.6\n"
gyp verb get node dir no --target version specified, falling back to host node version: 8.0.0
gyp verb command install [ '8.0.0' ]
gyp verb install input version string "8.0.0"
gyp verb install installing version: 8.0.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.0.0
gyp verb build dir attempting to create "build" dir: /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/build
gyp verb build dir "build" dir needed to be created? /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file: /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /home/dalip/Desktop/chat-web-sdk-sample-app/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 [ '/home/dalip/Desktop/chat-web-sdk-sample-app/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 '/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/dalip/.node-gyp/8.0.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/dalip/.node-gyp/8.0.0',
gyp info spawn args '-Dnode_gyp_dir=/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/dalip/.node-gyp/8.0.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/dalip/Desktop/chat-web-sdk-sample-app/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 /home/dalip/.node-gyp/8.0.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 /home/dalip/Desktop/chat-web-sdk-sample-app/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/dalip/.node-gyp/8.0.0/include/node -I/home/dalip/.node-gyp/8.0.0/src -I/home/dalip/.node-gyp/8.0.0/deps/uv/include -I/home/dalip/.node-gyp/8.0.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 make: g++: Command not found make: *** [Release/obj.target/libsass/src/libsass/src/ast.o] Error 127 make: Leaving directory
/home/dalip/Desktop/chat-web-sdk-sample-app/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 (/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-gyp/lib/build.js:258: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:197:12)
gyp ERR! System Linux 3.13.0-24-generic
gyp ERR! command "/usr/bin/nodejs" "/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass
gyp ERR! node -v v8.0.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@3.13.1 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@3.13.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! /home/dalip/.npm/_logs/2017-07-19T10_24_42_321Z-debug.log
Hi @dalip123
Sorry that you are having the issue.
From the log above, it looks like node-sass
failed to build on your machine...
Can you help follow the debugging steps in https://github.com/sass/node-sass/blob/master/TROUBLESHOOTING.md and file a bug report there if needed?
or maybe, you can try building a newer node-sass
version instead npm install node-sass@4
.
still not working , is it possible to remove node-sass component and test rest feature of web-chat sdk . It would be great help if you provide demo url of webchat sdk.
is it possible to remove node-sass component and test rest feature of web-chat sdk
yup, this sample app repo is meant as an sample implementation of chat experience on top of Zendesk Chat web sdk.
Please feel free to folk, tweak and experiment with different ways of using the Zendesk Chat web sdk 😁
It would be great help if you provide demo url of webchat sdk.
Thanks for the suggestion. For now, to see the look and feel of this sample app, you can visit this jsbin page: https://output.jsbin.com/domuluk
Thanks @tgohn :) .
I tried three times but still got npm WARN prefer global node-gyp@3.6.2 should be installed with -g
node-sass@3.13.1 install /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-57_binding.node Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-57_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
node-sass@3.13.1 postinstall /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass node scripts/build.js
Building: /usr/bin/nodejs /home/dalip/Desktop/chat-web-sdk-sample-app/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/nodejs', gyp verb cli '/home/dalip/Desktop/chat-web-sdk-sample-app/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.6.2 gyp info using node@8.0.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.6\n" gyp verb get node dir no --target version specified, falling back to host node version: 8.0.0 gyp verb command install [ '8.0.0' ] gyp verb install input version string "8.0.0" gyp verb install installing version: 8.0.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.0.0 gyp verb build dir attempting to create "build" dir: /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/build gyp verb build dir "build" dir needed to be created? /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/build gyp verb build/config.gypi creating config file gyp verb build/config.gypi writing out config file: /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/build/config.gypi gyp verb config.gypi checking for gypi file: /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/config.gypi gyp verb common.gypi checking for gypi file: /home/dalip/Desktop/chat-web-sdk-sample-app/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 [ '/home/dalip/Desktop/chat-web-sdk-sample-app/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 '/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/home/dalip/.node-gyp/8.0.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/dalip/.node-gyp/8.0.0', gyp info spawn args '-Dnode_gyp_dir=/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/home/dalip/.node-gyp/8.0.0/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/home/dalip/Desktop/chat-web-sdk-sample-app/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 /home/dalip/.node-gyp/8.0.0 gyp verbwhich
succeeded formake
/usr/bin/make gyp info spawn make gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory/home/dalip/Desktop/chat-web-sdk-sample-app/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/dalip/.node-gyp/8.0.0/include/node -I/home/dalip/.node-gyp/8.0.0/src -I/home/dalip/.node-gyp/8.0.0/deps/uv/include -I/home/dalip/.node-gyp/8.0.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 make: g++: Command not found make: *** [Release/obj.target/libsass/src/libsass/src/ast.o] Error 127 make: Leaving directory
/home/dalip/Desktop/chat-web-sdk-sample-app/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 (/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-gyp/lib/build.js:258: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:197:12) gyp ERR! System Linux 3.13.0-24-generic gyp ERR! command "/usr/bin/nodejs" "/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass gyp ERR! node -v v8.0.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok Build failed with error code: 1 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@3.13.1 postinstall:node scripts/build.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@3.13.1 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /home/dalip/.npm/_logs/2017-07-19T10_22_56_454Z-debug.log dalip@dalip-Inspiron-N5010:~/Desktop/chat-web-sdk-sample-app$ cd .. dalip@dalip-Inspiron-N5010:~/Desktop$ sudo chmod 777 chat-web-sdk-sample-app dalip@dalip-Inspiron-N5010:~/Desktop$ cd chat-web-sdk-sample-app dalip@dalip-Inspiron-N5010:~/Desktop/chat-web-sdk-sample-app$ sudo npm install npm WARN prefer global node-gyp@3.6.2 should be installed with -g
node-sass@3.13.1 install /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-57_binding.node Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-57_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
node-sass@3.13.1 postinstall /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass node scripts/build.js
Building: /usr/bin/nodejs /home/dalip/Desktop/chat-web-sdk-sample-app/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/nodejs', gyp verb cli '/home/dalip/Desktop/chat-web-sdk-sample-app/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.6.2 gyp info using node@8.0.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.6\n" gyp verb get node dir no --target version specified, falling back to host node version: 8.0.0 gyp verb command install [ '8.0.0' ] gyp verb install input version string "8.0.0" gyp verb install installing version: 8.0.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.0.0 gyp verb build dir attempting to create "build" dir: /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/build gyp verb build dir "build" dir needed to be created? /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/build gyp verb build/config.gypi creating config file gyp verb build/config.gypi writing out config file: /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/build/config.gypi gyp verb config.gypi checking for gypi file: /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/config.gypi gyp verb common.gypi checking for gypi file: /home/dalip/Desktop/chat-web-sdk-sample-app/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 [ '/home/dalip/Desktop/chat-web-sdk-sample-app/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 '/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/home/dalip/.node-gyp/8.0.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/dalip/.node-gyp/8.0.0', gyp info spawn args '-Dnode_gyp_dir=/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/home/dalip/.node-gyp/8.0.0/<(target_arch)/node.lib', gyp info spawn args '-Dmodule_root_dir=/home/dalip/Desktop/chat-web-sdk-sample-app/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 /home/dalip/.node-gyp/8.0.0 gyp verbwhich
succeeded formake
/usr/bin/make gyp info spawn make gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory/home/dalip/Desktop/chat-web-sdk-sample-app/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/dalip/.node-gyp/8.0.0/include/node -I/home/dalip/.node-gyp/8.0.0/src -I/home/dalip/.node-gyp/8.0.0/deps/uv/include -I/home/dalip/.node-gyp/8.0.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 make: g++: Command not found make: *** [Release/obj.target/libsass/src/libsass/src/ast.o] Error 127 make: Leaving directory
/home/dalip/Desktop/chat-web-sdk-sample-app/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 (/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-gyp/lib/build.js:258: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:197:12) gyp ERR! System Linux 3.13.0-24-generic gyp ERR! command "/usr/bin/nodejs" "/home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /home/dalip/Desktop/chat-web-sdk-sample-app/node_modules/node-sass gyp ERR! node -v v8.0.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok Build failed with error code: 1 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@3.13.1 postinstall:node scripts/build.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@3.13.1 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /home/dalip/.npm/_logs/2017-07-19T10_24_42_321Z-debug.log
I have the save problem
ERROR in Cannot find module 'node-sass' @ ./src/styles/Widget.scss 4:14-183