Picture of Matthew Williams
adapt upgrade fails
by Matthew Williams - Tuesday, 14 February 2017, 12:36 PM
 

Hi there

Please could someone give some guidance on the issue below - I am unable to start my authoring tool, I just get the logo and "load" dots, so I am trying to upgrade all components of authoring tool and framework to try and fix it. I get the output below when i run node upgrade.js and the upgrades ultimately fail.

Any help gratefully appreciated.

Matthew

(PS - framework starts and creates course fine)

 

Done, without errors.
 
front-end built.
 
Adapt authoring tool has been updated.
 
Upgrading the Adapt Framework...please hold on!
Fetch from GitHub was successful.
Pulling latest changes...
HEAD is now at 7bd4eeb added an 'updated' section to changes for 2.0.16
 
npm
 
WARN prefer global
 bower@1.3.12 should be installed with -g
 
npm
 ERR! Darwin 14.4.0
 
npm ERR! argv "/Users/mswilliams500/.nvm/versions/node/v4.2.6/bin/node" "/Users/mswilliams500/.nvm/versions/node/v4.2.6/bin/npm" "install"
 
npm ERR! node v4.2.6
npm ERR! npm  v2.14.12
 
npm ERR! code
 EPEERINVALID
 
 
 
npm ERR! peerinvalid The package grunt@1.0.1 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer adapt-grunt-tracking-ids@0.1.2 wants grunt@~0.4.1
npm ERR! peerinvalid Peer jit-grunt@0.10.0 wants grunt@>=0.4.0
npm ERR! peerinvalid Peer grunt-contrib-requirejs@0.4.4 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-requirejs-bundle@0.0.9 wants grunt@~0.4.1
npm ERR! peerinvalid Peer grunt-contrib-concat@0.5.1 wants grunt@>=0.4.0
npm ERR! peerinvalid Peer grunt-contrib-connect@1.0.2 wants grunt@>=0.4.0
npm ERR! peerinvalid Peer grunt-contrib-clean@1.0.0 wants grunt@>= 0.4.5
npm ERR! peerinvalid Peer grunt-contrib-jshint@1.0.0 wants grunt@>=0.4.0
npm ERR!
 peerinvalid Peer grunt-contrib-less@1.0.1 wants grunt@~0.4.5
npm ERR! peerinvalid
 Peer grunt-concurrent@2.3.1 wants grunt@>=0.4.0
npm ERR!
 peerinvalid Peer grunt-bower-requirejs@1.1.1 wants grunt@>=0.4.0
 
 
 
npm ERR! Please include the following file with any support request:
npm ERR!
     /Users/mswilliams500/adapt_authoring/temp/559003ba2e4e1f66066ead6c/adapt_framework/npm-debug.log
 
ERROR: 1
Picture of Helen Bailey
Re: adapt upgrade fails
by Helen Bailey - Tuesday, 14 February 2017, 3:50 PM
 

It's a grunt or npm version/install problem. Try :

deleting your node_modules folder

run: npm install

then run: node install

 

Picture of Matthew Williams
Re: adapt upgrade fails
by Matthew Williams - Wednesday, 15 February 2017, 11:10 AM
 

Thanks for the suggestion Helen.

The npm install got some of the way, then generated errors that look like something to do with phantom - i"m not sure what that is. 

Matthew

 

> phantomjs-prebuilt@2.1.14 install /Users/mswilliams500/adapt_authoring/node_modules/grunt-casperjs/node_modules/phantomjs-prebuilt

> node install.js

 

module.js:328

    throw err;

    ^

 

Error: Cannot find module 'is-property'

    at Function.Module._resolveFilename (module.js:326:15)

    at Function.Module._load (module.js:277:25)

    at Module.require (module.js:354:17)

    at require (internal/module.js:12:17)

    at Object.<anonymous> (/Users/mswilliams500/adapt_authoring/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/node_modules/generate-object-property/index.js:1:80)

    at Module._compile (module.js:410:26)

    at Object.Module._extensions..js (module.js:417:10)

    at Module.load (module.js:344:32)

    at Function.Module._load (module.js:301:12)

    at Module.require (module.js:354:17)

    at require (internal/module.js:12:17)

npmWARNdeprecated mongodb@2.0.48: Please upgrade to 2.2.19 or higher

npmWARNdeprecated node-uuid@1.3.3: use uuid module instead

 

> weak@1.0.1 install /Users/mswilliams500/adapt_authoring/node_modules/phantom/node_modules/dnode/node_modules/weak

> node-gyp rebuild

 

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

 

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

 

  CXX(target) Release/obj.target/weakref/src/weakref.o

  SOLINK_MODULE(target) Release/weakref.node

npmWARNpeerDependencies The peer dependency kerberos@~0.0 included from mongodb-core will no

npmWARNpeerDependencies longer be automatically installed to fulfill the peerDependency 

npmWARNpeerDependencies in npm 3+. Your application will need to depend on it explicitly.

-

> kerberos@0.0.22 install /Users/mswilliams500/adapt_authoring/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos

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

 

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

 

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

 

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

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

  CC(target) Release/obj.target/kerberos/lib/kerberosgss.o

  CC(target) Release/obj.target/kerberos/lib/base64.o

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

  SOLINK_MODULE(target) Release/kerberos.node

npmERR! Darwin 14.4.0

npmERR!argv "/Users/mswilliams500/.nvm/versions/node/v4.2.6/bin/node" "/Users/mswilliams500/.nvm/versions/node/v4.2.6/bin/npm" "install"

npmERR!node v4.2.6

npmERR!npm  v2.14.12

npmERR!code ELIFECYCLE

 

npmERR! phantomjs-prebuilt@2.1.14 install: `node install.js`

npmERR! Exit status 1

npmERR! 

npmERR! Failed at the phantomjs-prebuilt@2.1.14 install script 'node install.js'.

npmERR! This is most likely a problem with the phantomjs-prebuilt package,

npmERR! not with npm itself.

npmERR! Tell the author that this fails on your system:

npmERR!     node install.js

npmERR! You can get their info via:

npmERR!     npm owner ls phantomjs-prebuilt

npmERR! There is likely additional logging output above.

 

npmERR! Please include the following file with any support request:

npmERR!     /Users/mswilliams500/adapt_authoring/npm-debug.log

 

Picture of Matthew Williams
Re: adapt upgrade fails
by Matthew Williams - Friday, 17 February 2017, 3:11 PM
 

Solved now. Ran node install, which got the Authoring tool functioning again. Then ran upgrade.js and all upgraded to latest versions. 

Still can't figure out how to access my latest version of node without having to use  . ~/.nvm/nvm.sh - have tried setting default but always reverts to old node version on exit and restart. I think something to do with installing with nvm, but can't figure out how to reset default version.