Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install is failing on iojs v3.0.0 #211

Closed
daleharvey opened this issue Aug 10, 2015 · 8 comments
Closed

npm install is failing on iojs v3.0.0 #211

daleharvey opened this issue Aug 10, 2015 · 8 comments

Comments

@daleharvey
Copy link

Seeing a different error locally as well as a permafail on travis

https://s3.amazonaws.com/archive.travis-ci.org/jobs/74904011/log.txt is the travis log (https://travis-ci.org/pouchdb/pouchdb/jobs/74904011 is the run)

On a local install - https://gist.github.com/daleharvey/c8956054681e14ea192e

@jakeburden
Copy link

I ran into the same issue yesterday, it seems there is a pending pull request to fix it: #195

For the time being I'm just installing that leveldown branch.

npm i github://Level/leveldown#iojs-3.0 levelup -S

and using levelup instead of level

const level = require('levelup') // rather than require('level')

EDIT:
Branch name change

@jakeburden
Copy link

I think everything has been addressed with #195 & #212 as I'm not having any issues installing on io.js 3 any more :)

Thanks @mafintosh @rvagg @kkoopa @ralphtheninja @dominictarr @juliangruber !

@juliangruber
Copy link
Member

sweet, @daleharvey can you confirm?

@daleharvey
Copy link
Author

Hrm, I am still seeing failure to install on travis, https://api.travis-ci.org/jobs/75824033/log.txt?deansi=true is the log

In file included from /home/travis/.node-gyp/3.0.0/include/node/node.h:42:0,
                 from ../src/batch.cc:1:
/home/travis/.node-gyp/3.0.0/include/node/v8.h:336:1: error: expected unqualified-id before ‘using’

@rvagg
Copy link
Member

rvagg commented Aug 17, 2015

probably a compiler version error, see here @daleharvey

@ralphtheninja
Copy link
Member

@daleharvey Is this still an issue? Please close if that's the case. Thanks!

@daleharvey
Copy link
Author

Once I updated to g++4.8 I have started seeing new errors

  CXX(target) Release/obj.target/leveldown/src/batch.o
In file included from ../src/batch.cc:5:0:
../node_modules/nan/nan.h:261:25: error: redefinition of ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Local<T>)’
 NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
                         ^
../node_modules/nan/nan.h:256:25: error: ‘template<class T> v8::Local<T> _NanEnsureLocal(v8::Handle<T>)’ previously declared here
 NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
                         ^
../node_modules/nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared
     , node::smalloc::FreeCallback callback

Basing my changes to .travis.yml mostly off the leveldown travis.yml so not sure whats up here either

@daleharvey
Copy link
Author

I think that actually needs a level upgrade to be supported right? thats still in progress for pouch so will close this out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants