Picture of Serj Cash
Server installation
by Serj Cash - Wednesday, 5 October 2016, 9:23 AM
 

Hello. I'm trying to install Adapt Authoring tool and getting some errors on step "npm install"

My server running Ubuntu 16.04.1 LTS.

This is the log from SSH:

root@redmine:~# cd /home/adapt/adapt_authoring
root@redmine:/home/adapt/adapt_authoring# npm install
> weak@1.0.1 install /home/adapt/adapt_authoring/node_modules/weak
> node-gyp rebuild
/usr/bin/env: 'node': No such file or directory
npm WARN install:weak@1.0.1 weak@1.0.1 install: `node-gyp rebuild`
npm WARN install:weak@1.0.1 spawn ENOENT
> phantomjs-prebuilt@2.1.13 install /home/adapt/adapt_authoring/node_modules/pha ntomjs-prebuilt
> node install.js
sh: 1: node: not found
npm WARN mongodb-core@1.2.21 requires a peer of kerberos@~0.0 but none was insta lled.
npm ERR! Linux 2.6.32-042stab117.14
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! phantomjs-prebuilt@2.1.13 install: `node install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.13 install script 'node install.js '.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the phantomjs-prebuilt pa ckage,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs phantomjs-prebuilt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls phantomjs-prebuilt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/adapt/adapt_authoring/npm-debug.log

Versions of nodejs and npm:


root@redmine:/home/adapt/adapt_authoring# npm -v
3.5.2
root@redmine:/home/adapt/adapt_authoring# nodejs -v
v4.2.6

 

If i use npm install --production, then i get this log:


root@redmine:/home/adapt/adapt_authoring# npm install --production
> weak@1.0.1 install /home/adapt/adapt_authoring/node_modules/weak
> node-gyp rebuild
/usr/bin/env: 'node': No such file or directory
npm WARN install:weak@1.0.1 weak@1.0.1 install: `node-gyp rebuild`
npm WARN install:weak@1.0.1 spawn ENOENT
> phantomjs-prebuilt@2.1.13 install /home/adapt/adapt_authoring/node_modules/phantomjs-prebuilt
> node install.js
sh: 1: node: not found
npm WARN mongodb-core@1.2.21 requires a peer of kerberos@~0.0 but none was installed.
npm ERR! Linux 2.6.32-042stab117.14
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! phantomjs-prebuilt@2.1.13 install: `node install.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.13 install script 'node install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the phantomjs-prebuilt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs phantomjs-prebuilt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls phantomjs-prebuilt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/adapt/adapt_authoring/npm-debug.log

npm-debug.log included.

 

What can i do?

 

Picture of Nathan Mcilree
Re: Server installation
by Nathan Mcilree - Wednesday, 5 October 2016, 10:31 AM
 

I'm not sure if this helps but I had quite a few issues with following the Adapt instructions. I had to run the following to get to the install stage.

 

npm config set user 0

npm config set unsafe-perm true

npm install -g sm

npm install --production

 

 

 

 

 

Picture of Anders Ekman
Re: Server installation
by Anders Ekman - Wednesday, 5 October 2016, 10:55 AM
 

Try sudo npm install

Picture of Serj Cash
Re: Server installation
by Serj Cash - Wednesday, 5 October 2016, 10:56 AM
 

Managed to bypass errors with this command before npm install:

ln -s /usr/bin/nodejs /usr/bin/node

Picture of Serj Cash
Re: Server installation
by Serj Cash - Wednesday, 5 October 2016, 3:15 PM
 

Another error: 

When i press Download button, i get a blank page, saying:

Cannot GET /download/57f4d32ef6b9817b245db25c/57f510e757be6703299b5a2b//download.zip?

 

How to correct this?