typescript-ionic-seed
typescript-ionic-seed copied to clipboard
Failure to npm install because of gulp-sass version
Trying to install the boilerplate on Ubuntu 15.10 fails with the output below because of the gulp-sass version specified in package.json
I've fixed the issue by removing the node_modules dir from my project, changed the gulp-sass version from "gulp-sass": "^0.7.1" to ^2.0.1 and did a fresh npm install after.
It took me a while to figure it out, so I hope this will be helpful for others.
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
^
../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:
../node_modules/nan/nan.h:777:12: error: ‘Use’ is not a member of ‘node::Buffer’
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^
../node_modules/nan/nan.h: In function ‘bool _NanGetExternalParts(v8::Handle<v8::Value>, const char**, size_t*)’:
../node_modules/nan/nan.h:2103:12: error: ‘class v8::String’ has no member named ‘IsExternalAscii’
if (str->IsExternalAscii()) {
^
../node_modules/nan/nan.h:2104:23: error: ‘ExternalAsciiStringResource’ in ‘class v8::String’ does not name a type
const v8::String::ExternalAsciiStringResource* ext;
^
../node_modules/nan/nan.h:2105:5: error: ‘ext’ was not declared in this scope
ext = str->GetExternalAsciiStringResource();
^
../node_modules/nan/nan.h:2105:16: error: ‘class v8::String’ has no member named ‘GetExternalAsciiStringResource’
ext = str->GetExternalAsciiStringResource();
^
../binding.cpp: In function ‘void MakeCallback(uv_work_t*)’:
../binding.cpp:138:35: warning: ‘void node::FatalException(const v8::TryCatch&)’ is deprecated:
Use FatalException(isolate, ...) [-Wdeprecated-declarations]
node::FatalException(try_catch);
^
In file included from ../node_modules/nan/nan.h:23:0,
from ../binding.cpp:1:
/home/radu/.node-gyp/5.0.0/include/node/node.h:283:29: note: declared here
inline void FatalException(const v8::TryCatch& try_catch) {
^
/home/radu/.node-gyp/5.0.0/include/node/node.h:66:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^
binding.target.mk:120: recipe for target 'Release/obj.target/binding/binding.o' failed
make: *** [Release/obj.target/binding/binding.o] Error 1
make: Leaving directory '/home/radu/monsenso/homepage/mon_home_io_ts/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/local/lib/node_modules/npm/node_modules/node-
gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.2.0-19-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-
gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/radu/monsenso/homepage/mon_home_io_ts/node_modules/node-sass
gyp ERR! node -v v5.0.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
Build failed
...
npm ERR! Linux 4.2.0-19-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v5.0.0
npm ERR! npm v3.3.6
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 'node build.js'.
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.