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?