Newbie help - installation issues on Yosemite.

Visto 124 veces
Saltar al primer mensaje no leído

Pj

no leída,
2 oct 2015, 7:15:152/10/15
a LoopbackJS
Hello,
I'm new to node.js and to loopback.
Using a Yosemite on a mac and using nvm with either node 4.11 or 0.12.4 available.

Just tying to follow along a tutorial here:


I found that the initial install of loopback threw a load of errors.. but eventually seemed to sort itself out.
So I was able to get on with the tutorial and generate models etc.

But when I got to the install of a mongodb connector I got a load of errors again. This time can't seem to get past them.
They seem to be xcode problems and something to do with the iPhoneOS....
Possibly something up with xcode.. but as far as I know its up to date...

I'll include them below and hopefully someone can help me get moving..

Thanks in advance
PJ


pj@PJs-MacbookPro:~/Documents/Personal/Learning/Node-js/sandbox/Givesomebody$  npm install loopback-connector-mongodb --save

npm WARN package.json Giveso...@1.0.0 No license field.

\

> kerb...@0.0.14 install /Users/pj/Documents/Personal/Learning/Node-js/sandbox/Givesomebody/node_modules/loopback-connector-mongodb/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos

> (node-gyp rebuild) || (exit 0)


2015-10-02 12:08:44.274 xcodebuild[15851:1060183] Error loading /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/iPhoneOS Build System Support.xcplugin/Contents/MacOS/iPhoneOS Build System Support:  dlopen(/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/iPhoneOS Build System Support.xcplugin/Contents/MacOS/iPhoneOS Build System Support, 265): Library not loaded: /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice

  Referenced from: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKitBase.framework/Versions/A/DTDeviceKitBase

  Reason: no suitable image found.  Did find:

/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice: GC capability mismatch

2015-10-02 12:08:44.275 xcodebuild[15851:1060183] WARNING: Failed to load plugin at: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/iPhoneOS Build System Support.xcplugin, skipping.  Could not load bundle.

  CXX(target) Release/obj.target/kerberos/lib/kerberos.o

In file included from ../lib/kerberos.cc:1:

In file included from ../lib/kerberos.h:4:

In file included from /Users/pj/.node-gyp/0.12.4/src/node.h:61:

In file included from /Users/pj/.node-gyp/0.12.4/deps/v8/include/v8.h:18:

/Users/pj/.node-gyp/0.12.4/deps/v8/include/v8stdint.h:11:10: fatal error: 'stdio.h' file not found

#include <stdio.h>

         ^

1 error generated.

make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1

gyp ERR! build error 

gyp ERR! stack Error: `make` failed with exit code: 2

gyp ERR! stack     at ChildProcess.onExit (/Users/pj/.nvm/versions/node/v0.12.4/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)

gyp ERR! stack     at ChildProcess.emit (events.js:110:17)

gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)

gyp ERR! System Darwin 14.5.0

gyp ERR! command "node" "/Users/pj/.nvm/versions/node/v0.12.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

gyp ERR! cwd /Users/pj/Documents/Personal/Learning/Node-js/sandbox/Givesomebody/node_modules/loopback-connector-mongodb/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos

gyp ERR! node -v v0.12.4

gyp ERR! node-gyp -v v1.0.3

gyp ERR! not ok 

loopback-conn...@1.13.0 node_modules/loopback-connector-mongodb

├── as...@1.4.2

├── loopback-...@2.3.0

├── de...@2.2.0 (m...@0.7.1)

└── mon...@2.0.45 (es6-p...@2.1.1, readabl...@1.0.31, mongod...@1.2.14)

Pj

no leída,
5 oct 2015, 4:57:525/10/15
a LoopbackJS
Just in case anybody has any interest.
It was the first time I'd had anything to do with Xcode.. haven't need to develop IOS or OSX apps.
So somehow the xcode wasn't installed right.
I uninstalled it and installed the latest version and now things are going fine.

Anybody able to tell me if I shoudl be using node 4.1.1. with this or stick with 0.12.4 as per this :


Thanks
PJ

loopback-connector-mongodb@1.13.0 node_modules/loopback-connector-mongodb

Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos