codecombat: Failed at the node-sass@3.13.1 postinstall script
please help me ! what should I do
node-sass@3.13.1 install /Users/zz379/Desktop/Project/Game/combat/node_modules/sass-brunch/node_modules/node-sass node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/darwin-x64-57_binding.node Cannot download “https://github.com/sass/node-sass/releases/download/v3.13.1/darwin-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 /Users/zz379/Desktop/Project/Game/combat/node_modules/sass-brunch/node_modules/node-sass node scripts/build.js
Building: /Users/zz379/.nvm/versions/node/v8.4.0/bin/node /Users/zz379/Desktop/Project/Game/combat/node_modules/sass-brunch/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 [ ‘/Users/zz379/.nvm/versions/node/v8.4.0/bin/node’,
gyp verb cli ‘/Users/zz379/Desktop/Project/Game/combat/node_modules/sass-brunch/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.4.0 | darwin | 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
failed Error: not found: python2
gyp verb which
failed at getNotFoundError (/Users/zz379/Desktop/Project/Game/combat/node_modules/which/which.js:13:12)
gyp verb which
failed at F (/Users/zz379/Desktop/Project/Game/combat/node_modules/which/which.js:68:19)
gyp verb which
failed at E (/Users/zz379/Desktop/Project/Game/combat/node_modules/which/which.js:80:29)
gyp verb which
failed at /Users/zz379/Desktop/Project/Game/combat/node_modules/which/which.js:89:16
gyp verb which
failed at /Users/zz379/Desktop/Project/Game/combat/node_modules/isexe/index.js:42:5
gyp verb which
failed at /Users/zz379/Desktop/Project/Game/combat/node_modules/isexe/mode.js:8:5
gyp verb which
failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which
failed python2 { Error: not found: python2
gyp verb which
failed at getNotFoundError (/Users/zz379/Desktop/Project/Game/combat/node_modules/which/which.js:13:12)
gyp verb which
failed at F (/Users/zz379/Desktop/Project/Game/combat/node_modules/which/which.js:68:19)
gyp verb which
failed at E (/Users/zz379/Desktop/Project/Game/combat/node_modules/which/which.js:80:29)
gyp verb which
failed at /Users/zz379/Desktop/Project/Game/combat/node_modules/which/which.js:89:16
gyp verb which
failed at /Users/zz379/Desktop/Project/Game/combat/node_modules/isexe/index.js:42:5
gyp verb which
failed at /Users/zz379/Desktop/Project/Game/combat/node_modules/isexe/mode.js:8:5
gyp verb which
failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which
failed stack: ‘Error: not found: python2\n at getNotFoundError (/Users/zz379/Desktop/Project/Game/combat/node_modules/which/which.js:13:12)\n at F (/Users/zz379/Desktop/Project/Game/combat/node_modules/which/which.js:68:19)\n at E (/Users/zz379/Desktop/Project/Game/combat/node_modules/which/which.js:80:29)\n at /Users/zz379/Desktop/Project/Game/combat/node_modules/which/which.js:89:16\n at /Users/zz379/Desktop/Project/Game/combat/node_modules/isexe/index.js:42:5\n at /Users/zz379/Desktop/Project/Game/combat/node_modules/isexe/mode.js:8:5\n at FSReqWrap.oncomplete (fs.js:152:21)’,
gyp verb which
failed code: ‘ENOENT’ }
gyp verb check python checking for Python executable “python” in the PATH
gyp verb which
succeeded python /usr/bin/python
gyp verb check python version /usr/bin/python -c "import platform; print(platform.python_version());"
returned: “2.7.10\n”
gyp verb get node dir no --target version specified, falling back to host node version: 8.4.0
gyp verb command install [ ‘8.4.0’ ]
gyp verb install input version string “8.4.0”
gyp verb install installing version: 8.4.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.4.0
gyp verb build dir attempting to create “build” dir: /Users/zz379/Desktop/Project/Game/combat/node_modules/sass-brunch/node_modules/node-sass/build
gyp verb build dir “build” dir needed to be created? /Users/zz379/Desktop/Project/Game/combat/node_modules/sass-brunch/node_modules/node-sass/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /Users/zz379/Desktop/Project/Game/combat/node_modules/sass-brunch/node_modules/node-sass/build/config.gypi
gyp verb config.gypi checking for gypi file: /Users/zz379/Desktop/Project/Game/combat/node_modules/sass-brunch/node_modules/node-sass/config.gypi
gyp verb common.gypi checking for gypi file: /Users/zz379/Desktop/Project/Game/combat/node_modules/sass-brunch/node_modules/node-sass/common.gypi
gyp verb gyp gyp format was not specified; forcing “make”
gyp info spawn /usr/bin/python
gyp info spawn args [ ‘/Users/zz379/Desktop/Project/Game/combat/node_modules/sass-brunch/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 ‘/Users/zz379/Desktop/Project/Game/combat/node_modules/sass-brunch/node_modules/node-sass/build/config.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/Users/zz379/Desktop/Project/Game/combat/node_modules/sass-brunch/node_modules/node-gyp/addon.gypi’,
gyp info spawn args ‘-I’,
gyp info spawn args ‘/Users/zz379/.node-gyp/8.4.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=/Users/zz379/.node-gyp/8.4.0’,
gyp info spawn args ‘-Dnode_gyp_dir=/Users/zz379/Desktop/Project/Game/combat/node_modules/sass-brunch/node_modules/node-gyp’,
gyp info spawn args ‘-Dnode_lib_file=/Users/zz379/.node-gyp/8.4.0/<(target_arch)/node.lib’,
gyp info spawn args ‘-Dmodule_root_dir=/Users/zz379/Desktop/Project/Game/combat/node_modules/sass-brunch/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 /Users/zz379/.node-gyp/8.4.0
gyp verb which
succeeded for make
/usr/bin/make
gyp info spawn make
gyp info spawn args [ ‘V=1’, ‘BUILDTYPE=Release’, ‘-C’, ‘build’ ]
c++ ‘-DNODE_GYP_MODULE_NAME=binding’ ‘-DUSING_UV_SHARED=1’ ‘-DUSING_V8_SHARED=1’ ‘-DV8_DEPRECATION_WARNINGS=1’ ‘-D_DARWIN_USE_64_BIT_INODE=1’ ‘-D_LARGEFILE_SOURCE’ ‘-D_FILE_OFFSET_BITS=64’ ‘-DBUILDING_NODE_EXTENSION’ -I/Users/zz379/.node-gyp/8.4.0/include/node -I/Users/zz379/.node-gyp/8.4.0/src -I/Users/zz379/.node-gyp/8.4.0/deps/uv/include -I/Users/zz379/.node-gyp/8.4.0/deps/v8/include -I…/…/…/…/nan -Os -gdwarf-2 -mmacosx-version-min=10.7 -arch x86_64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++0x -stdlib=libc++ -fno-rtti -fno-exceptions -fno-threadsafe-statics -std=c++11 -MMD -MF ./Release/.deps/Release/obj.target/binding/src/binding.o.d.raw -c -o Release/obj.target/binding/src/binding.o …/src/binding.cpp
In file included from …/src/binding.cpp:3:
…/src/sass_context_wrapper.h:8:10: fatal error: ‘sass/context.h’ file not found
#include <sass/context.h>
^
1 error generated.
make: *** [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/zz379/Desktop/Project/Game/combat/node_modules/sass-brunch/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:200:12)
gyp ERR! System Darwin 16.7.0
gyp ERR! command “/Users/zz379/.nvm/versions/node/v8.4.0/bin/node” “/Users/zz379/Desktop/Project/Game/combat/node_modules/sass-brunch/node_modules/node-gyp/bin/node-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” “–libsass_library=”
gyp ERR! cwd /Users/zz379/Desktop/Project/Game/combat/node_modules/sass-brunch/node_modules/node-sass
gyp ERR! node -v v8.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN The package intercom-client is included as both a dev and production dependency.
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.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 8
- Comments: 39 (1 by maintainers)
Links to this issue
Commits related to this issue
- Upped gulp-sass to 3.0.0 to avoid a node-gyp build error (see https://github.com/codecombat/codecombat/issues/4430#issuecomment-348927771) — committed to certainlyakey/timber-boilerplate by deleted user 6 years ago
- Update Gulp-sass version due to `npm install` causing errors. Found solution here: https://github.com/codecombat/codecombat/issues/4430#issuecomment-354734623 — committed to Benjamin-Mueggenburg/Bassa by deleted user 6 years ago
- Fix node-sass@3.13.1 dependency https://github.com/codecombat/codecombat/issues/4430 — committed to NotYourMothersMormonism/NotYourMothersMormonism by jaredrummler 4 years ago
- Fix node-sass@3.13.1 dependency https://github.com/codecombat/codecombat/issues/4430 — committed to NotYourMothersMormonism/NotYourMothersMormonism by jaredrummler 4 years ago
- Update gulp-sass to avoid failed npm update This upgrades the gulp-sass version to ^3.0.0 to avoid the issue of node-sass@3.13.1 not being available. Solution comes from; https://github.com/codecom... — committed to garretthyder/gulp-wpmvc by garretthyder 4 years ago
- fix error follow advice from https://github.com/codecombat/codecombat/issues/4430 — committed to arfeifei/jangouts by arfeifei 4 years ago
I had this issue at work just now. I solved with the following: Edited this line in package.json:
"gulp-sass": "^2.3.2"
to"gulp-sass": "3.0.0",
i then cleared the node_modules folder by removing it and then rannpm install
again and everything works! Clearly theres some issue with the latest version but this will do as for now since we need to build our files.Edit: You might need to clear your npm cache but that shouldnt be necessary
Edit 2020: I’ve noticed this comment has been getting a lot of attention these past years. I originally wrote this comment back in 2017 when npm was a bit different.
First off, you shouldnt clear your local cache. As pointed out in the npm documentation
Cache corruption will either trigger an error, or signal to pacote that the data must be refetched, which it will do automatically. For this reason, it should never be necessary to clear the cache for any reason other than reclaiming disk space, thus why clean now requires --force to run.
Second, as some people have pointed out, you should use the
npm install
command to update gulp-sass. So instead of updating your package.json file donpm install --save gulp-sass@latest
ornpm install --save gulp-sass@3.0.0
for a specific version.Documentation for npm install: https://docs.npmjs.com/cli-commands/install.html
Follow these steps resolved my issue
Moving to gulp-sass version “^3.1.0”
Same issue here. Switching to
gulp-sass
^3.0.0
fixed it.I try to execute: npm install -g node-sass then execute : npm install the issue still exist!
same issue here,
npm install node-sass@latest
fixed it.delete node_modules delete node-sass in pakage.json npm i gulp-sass@^3.0.0 npm wintersmith": “^2.5.0”, npm wintersmith-sassy": “^1.2.0” npm i
Found this randomly dealing with a completely different project. Thank youuuu.
BTW, It’s worth noting you should just be using
npm install --save-dev gulp-sass@latest
rather than manually changing thepackage.json
or deletingnode_modules
and starting over.Using this my issue is resolved. happy
Remove: ‘node_modules’ directory Update: gulp-sass version to 3.0.0 Run npm install
thanks Vinay it worked
Same here. Windows10 BASH shell + npm