Picture of Mark D'Aquin
Error: Cannot find module 'needle'
by Mark D'Aquin - Saturday, 12 December 2015, 2:03 AM
 

If you are attempting to do an upgrade to Adapt Framework v2.0.6 and receive the error above you need to install needle. In a terminal window, before running node upgrade.js - run npm install needle then try running node upgrade.js.

Picture of Brian Quinn
Re: Error: Cannot find module 'needle'
by Brian Quinn - Monday, 14 December 2015, 9:44 AM
 

Actually Mark, the dependency on needle was something which was introduced with the authoring tool v0.1.4.  The instructions to remove node_modules and run "npm install" were part of the change log:
https://github.com/adaptlearning/adapt_authoring/blob/master/CHANGELOG.md#014---2015-11-25

You should always check the change log between upgrades as any manual steps will be detailed here.

Regards,

Brian

Picture of Mark D'Aquin
Re: Error: Cannot find module 'needle'
by Mark D'Aquin - Monday, 14 December 2015, 10:57 PM
 

Hi Brian,

Thanks for the info.

Best Regards,

Mark

Picture of Mark D'Aquin
Re: Error: Cannot find module 'needle'
by Mark D'Aquin - Monday, 14 December 2015, 11:01 PM
 

Hi Brian,

So, with what I did seemed to work. It this going to present an issue down the road or should it be fine?

Thanks!

Mark

Picture of Brian Quinn
Re: Error: Cannot find module 'needle'
by Brian Quinn - Tuesday, 15 December 2015, 9:49 AM
 

Hi Mark,

There's a chance that other versions of Node modules are not what the code is expecting in v0.1.4.  To be on the safe side I'd recommend following the instructions in the change log.

Brian