Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Install on Ubuntu 16.04.1 #55

Open
ghost opened this issue Feb 12, 2017 · 4 comments
Open

Can't Install on Ubuntu 16.04.1 #55

ghost opened this issue Feb 12, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Feb 12, 2017

My npm install always returns with an error and all the workarounds I found haven't worked.

Clone Log:

sudo git clone https://github.com/GordyD/3ree.git
Cloning into '3ree'...
remote: Counting objects: 603, done.
remote: Total 603 (delta 0), reused 0 (delta 0), pack-reused 603
Receiving objects: 100% (603/603), 120.38 KiB | 0 bytes/s, done.
Resolving deltas: 100% (287/287), done.
Checking connectivity... done.

Install Log:

sudo npm install
npm WARN deprecated node-uuid@1.4.7: use uuid module instead
npm WARN deprecated babel@6.5.2: Babel's CLI commands have been moved from the babel package to the babel-cli package
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.

> phantomjs-prebuilt@2.1.14 install /var/nodejs/3ree/node_modules/phantomjs-prebuilt
> node install.js

sh: 1: node: not found
3ree@1.0.0 /var/nodejs/3ree

.....tree....

pm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.17
npm WARN 3ree@1.0.0 No repository field.
npm ERR! Linux 4.4.0-31-generic
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.14 install: `node install.js`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the phantomjs-prebuilt@2.1.14 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.
@snobear
Copy link
Contributor

snobear commented Feb 13, 2017

@JessicaHergert It looks like nodejs isn't installed on your machine. Try to install it with sudo apt-get install npm. It should say its already installed if its present already, in which case you probably don't have the path to the node command in your PATH, or specifically the root user's PATH since you're running the command as root (sudo).

@ghost
Copy link
Author

ghost commented Feb 13, 2017

@snobear As the headline reads, this issue refers to installing on Ubuntu 16.04.1. It also says that node.js is installed at version 4.2.6 in the log I posted, where it reads "npm ERR! node v4.2.6".

nodejs -v
v4.2.6

@snobear
Copy link
Contributor

snobear commented Feb 13, 2017

Right - thats why I suggested sudo apt-get install...apt-get is the package manager for Ubuntu.

Anyhow, looks like its installed. I bet the node command isn't in the root user's path. You could fix that, BUT I would recommend that you do all these commands without sudo, as a general recommendation. You should be able to fire it up the project as a regular user.

@ghost
Copy link
Author

ghost commented Feb 13, 2017

@snobear to be clear about the command thing: the command node is already taken in ubuntu 16.04.1 - the command is "nodejs"

also without sudo npm can't really install any of these things at all.

but even if I try to install phantomjs manually beforehand, it still fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant