Unable to run telescope / meteor - node.js

Im trying to follow the instructions from http://www.telesc.pe/docs/installing-telescope/
Managed to install node.js and npm using the link on the page. I have also installed meteor and meteorite. I have also pulled the latest update using git clone git#github.com:TelescopeJS/Telescope.git
I can can run another meteor app. (like a demo 'myapp')
But when I try and launch meteor from inside the 'telescope' folder, I get the following:
*Last login: Fri Aug 1 19:52:52 on ttys000
static-239:~ shwaytaj$ cd telescope
static-239:telescope shwaytaj$ meteor
[[[[[ ~/telescope ]]]]]
=> Started proxy.
=> Started MongoDB.
iron-router: updating npm dependencies -- connect...
npm ERR! Error: EACCES, open '/Users/shwaytaj/.npm/inherits/2.0.1/package/package.json'
npm ERR! { [Error: EACCES, open '/Users/shwaytaj/.npm/inherits/2.0.1/package/package.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/shwaytaj/.npm/inherits/2.0.1/package/package.json',
npm ERR! parent: 'readable-stream' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.0.0
npm ERR! command "/Users/shwaytaj/.meteor/tools/cef2bcd356/bin/node" "/Users/shwaytaj/.meteor/tools/cef2bcd356/bin/npm" "install" "connect#2.9.0"
npm ERR! cwd /Users/shwaytaj/.meteorite/packages/iron-router/EventedMind/iron-router/05415a8891ea87a00fb1e2388585f2ca5a38e0da/.npm/package-new-1efnvtc
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /Users/shwaytaj/.npm/inherits/2.0.1/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/Users/shwaytaj/.npm/inherits/2.0.1/package/package.json'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/shwaytaj/.meteorite/packages/iron-router/EventedMind/iron-router/05415a8891ea87a00fb1e2388585f2ca5a38e0da/.npm/package-new-1efnvtc/npm-debug.log
npm ERR! not ok code 0
mailchimp: updating npm dependencies -- mailchimp...
npm ERR! Error: EACCES, mkdir '/Users/shwaytaj/.npm/request/2.39.0'
npm ERR! { [Error: EACCES, mkdir '/Users/shwaytaj/.npm/request/2.39.0']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/shwaytaj/.npm/request/2.39.0',
npm ERR! parent: 'mailchimp' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.0.0
npm ERR! command "/Users/shwaytaj/.meteor/tools/cef2bcd356/bin/node" "/Users/shwaytaj/.meteor/tools/cef2bcd356/bin/npm" "install" "mailchimp#1.0.3"
npm ERR! cwd /Users/shwaytaj/telescope/packages/mailchimp/.npm/package-new-55uyws
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /Users/shwaytaj/.npm/request/2.39.0
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/Users/shwaytaj/.npm/request/2.39.0'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/shwaytaj/telescope/packages/mailchimp/.npm/package-new-55uyws/npm-debug.log
npm ERR! not ok code 0
fast-render: updating npm dependencies -- connect...
npm ERR! Error: EACCES, open '/Users/shwaytaj/.npm/inherits/2.0.1/package/package.json'
npm ERR! { [Error: EACCES, open '/Users/shwaytaj/.npm/inherits/2.0.1/package/package.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/shwaytaj/.npm/inherits/2.0.1/package/package.json',
npm ERR! parent: 'readable-stream' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.0.0
npm ERR! command "/Users/shwaytaj/.meteor/tools/cef2bcd356/bin/node" "/Users/shwaytaj/.meteor/tools/cef2bcd356/bin/npm" "install" "connect#2.13.0"
npm ERR! cwd /Users/shwaytaj/.meteorite/packages/fast-render/arunoda/meteor-fast-render/149984b1aff3a5642a270aff9bd9006872c8302e/.npm/package-new-1c6pww9
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /Users/shwaytaj/.npm/inherits/2.0.1/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/Users/shwaytaj/.npm/inherits/2.0.1/package/package.json'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/shwaytaj/.meteorite/packages/fast-render/arunoda/meteor-fast-render/149984b1aff3a5642a270aff9bd9006872c8302e/.npm/package-new-1c6pww9/npm-debug.log
npm ERR! not ok code 0
=> Errors prevented startup:
While building package `iron-router`:
error: couldn't install npm package
While building package `mailchimp`:
error: couldn't install npm package
While building package `fast-render`:
error: couldn't install npm package
=> Your application has errors. Waiting for file change.*

Seems like you were using sudo too much. Make sure that you're the owner of all files within ~/.npm and ~/.meteorite, so basically
sudo chown -R username:username ~/.npm ~/.meteorite

You're probably getting this because you did:
sudo npm install -g meteorite
If you do sudo mrt in the teloscope app folder it will probably run fine.
If you want to resolve the issue you will need to fix your permissions, you can do:
sudo chown -R whoami ~/.npm
See here for more:
https://github.com/oortcloud/meteorite/

Related

How do I install the latest npm version on my shared server through SSH

I have been trying to update the npm on the shared hosting server (linux) through SSH using this command: npm i npm#latest -g
I keep getting this error message:
npm ERR! Linux 3.10.0-714.10.2.lve1.4.66.el6h.x86_64
npm ERR! argv "node" "/usr/bin/npm" "i" "npm#latest" "-g"
npm ERR! node v0.10.47
npm ERR! npm v3.8.3
npm ERR! path /usr/lib/node_modules/npm/node_modules/abbrev
npm ERR! code EACCES
npm ERR! Error: EACCES, access '/usr/lib/node_modules/npm/node_modules/abbrev'
npm ERR! at module.exports (/usr/lib/node_modules/npm/lib/install/access-error.js:4:18)
npm ERR! at /usr/lib/node_modules/npm/lib/install/writable.js:30:25
npm ERR! at /usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:232:16
npm ERR! at Object.oncomplete (fs.js:108:15)
npm ERR! { [Error: EACCES, access '/usr/lib/node_modules/npm/node_modules/abbrev']
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/lib/node_modules/npm/node_modules/abbrev' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
I have tried to follow this advice,
chown -R $USER /usr/local
but no success.
Any advice is welcome

NPM package issues when running meteor app

Right now, I'm trying to get Telescope to run locally on my Mac. I go through all the steps, but once I type in
meteor
in terminal, this is what I get:
=> Started proxy.
=> Started MongoDB.
fast-render: updating npm dependencies -- connect...
npm ERR! Error: EACCES, open '/Users/Justin/.npm/inherits/2.0.1/package/package.json'
npm ERR! { [Error: EACCES, open '/Users/Justin/.npm/inherits/2.0.1/package/package.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/Justin/.npm/inherits/2.0.1/package/package.json',
npm ERR! parent: 'readable-stream' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.3.0
npm ERR! command "/Users/Justin/.meteor/tools/cef2bcd356/bin/node" "/Users/Justin/.meteor/tools/cef2bcd356/bin/npm" "install" "connect#2.13.0"
npm ERR! cwd /Users/Justin/.meteorite/packages/fast-render/arunoda/meteor-fast-render/149984b1aff3a5642a270aff9bd9006872c8302e/.npm/package-new-26ztfl
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /Users/Justin/.npm/inherits/2.0.1/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/Users/Justin/.npm/inherits/2.0.1/package/package.json'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/Justin/.meteorite/packages/fast-render/arunoda/meteor-fast-render/149984b1aff3a5642a270aff9bd9006872c8302e/.npm/package-new-26ztfl/npm-debug.log
npm ERR! not ok code 0
=> Errors prevented startup:
While building package `fast-render`:
error: couldn't install npm package
While building package `telescope-tags`:
error: no such package: 'iron-router'
While building package `telescope-search`:
error: no such package: 'iron-router'
Any help would be great. Thanks.
This worked for me: https://github.com/meteor/meteor/issues/893
From the post:
"Looking in my .meteor/local directory, I saw that .meteor/local/build was owned by root instead of my normal user. Running a sudo rm -r build from within .meteor/local fixed the problem."

npm update error while trying to install ionic

I've got problems trying to install NPM.
Always worked well, but now, i've to install "ionic" and the problem is that when i tried to re-install nodejs all work well, it seems that npm installed but trying to update it, it gives me errors, so i tried to update it via this command:
curl https://www.npmjs.org/install.sh | sh
I cannot install ionic, i don't know why. I've installed months ago cordova and phonegap, but ionic gives me trouble.
Reading guides, tell me to update my npm and doing this, that what i've (this is the following error using the command above)
cleanup prefix=/usr/local
All clean!
unbuild npm#1.4.14
npm ERR! Error: EACCES, unlink '/usr/local/lib/node_modules/npm'
npm ERR! { [Error: EACCES, unlink '/usr/local/lib/node_modules/npm']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/npm' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.2.0
npm ERR! command "/usr/local/bin/node" "/private/var/folders/ry/gd7h2rhs52n10yr83_w50wyw0000gp/T/npm.18934/package/cli.js" "rm" "npm" "-gf"
npm ERR! cwd /private/var/folders/ry/gd7h2rhs52n10yr83_w50wyw0000gp/T/npm.18934/package
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.16
npm ERR! path /usr/local/lib/node_modules/npm
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, unlink '/usr/local/lib/node_modules/npm'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/ry/gd7h2rhs52n10yr83_w50wyw0000gp/T/npm.18934/package/npm-debug.log
npm ERR! not ok code 0
> npm#1.4.16 prepublish .
> node bin/npm-cli.js prune --prefix=. --no-global && rm -rf test/*/*/node_modules && make -j32 doc
make: Nothing to be done for `doc'.
npm ERR! error rolling back Error: EACCES, unlink '/usr/local/lib/node_modules/npm'
npm ERR! error rolling back npm#1.4.16 { [Error: EACCES, unlink '/usr/local/lib/node_modules/npm']
npm ERR! error rolling back errno: 3,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/npm' }
npm ERR! Error: EACCES, unlink '/usr/local/lib/node_modules/npm'
npm ERR! { [Error: EACCES, unlink '/usr/local/lib/node_modules/npm']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/npm' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.2.0
npm ERR! command "/usr/local/bin/node" "/private/var/folders/ry/gd7h2rhs52n10yr83_w50wyw0000gp/T/npm.18934/package/cli.js" "install" "-gf"
npm ERR! cwd /private/var/folders/ry/gd7h2rhs52n10yr83_w50wyw0000gp/T/npm.18934/package
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.16
npm ERR! path /usr/local/lib/node_modules/npm
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, unlink '/usr/local/lib/node_modules/npm'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/ry/gd7h2rhs52n10yr83_w50wyw0000gp/T/npm.18934/package/npm-debug.log
npm ERR! not ok code 0
Solved using the command sudo su on my mac os x (so without using sudo with the commando or sudo $username).
then using the curl commando it run.
Thanks however.
Might this answer could be usefull
Try this:
rm -rf /usr/local/lib/node_modules/npm
sudo curl https://www.npmjs.org/install.sh | sh

NPM installation issues on Mac OS Mavericks

I am trying to get to grips with AngularJS, NodeJS and Ruby on Rails. When trying to install npm packages like yeoman, grunt etc. I receive an error in my Terminal which I have listed below:
npm ERR! Error: EACCES, open '/Users/Jabane/.npm/glob/3.2.11/package/package.json.25961'
npm ERR! { [Error: EACCES, open '/Users/Jabane/.npm/glob/3.2.11/package/package.json.25961']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/Jabane/.npm/glob/3.2.11/package/package.json.25961',
npm ERR! parent: 'browserify' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "browserify"
npm ERR! cwd /Users/Jabane
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.16
npm ERR! path /Users/Jabane/.npm/glob/3.2.11/package/package.json.25961
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/Users/Jabane/.npm/glob/3.2.11/package/package.json.25961'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/kJabane/npm-debug.log
npm ERR! not ok code 0
What might be the issue in this case? Your assistance is highly appreciated.
Thanks
This is a permissions issue. You need to prefix your npm install command with sudo, e.g.:
sudo npm install yeoman
It will prompt you for your User Account's password; and subject to the correct password being provided, will then install the packages correctly.

Error Installing ExpressJS via npm

I am running into an issue when I try to run "npm install -g express" and "npm install -g express-generator". Here is the error message for both. I have been able to install Express in the past by using package.json, but not through npm. Any ideas? :
"npm install -g express":
npm http GET https://registry.npmjs.org/express
npm http 304 https://registry.npmjs.org/express
npm ERR! error rolling back Error: EACCES, unlink '/usr/local/lib/node_modules/express'
npm ERR! error rolling back express#4.3.1 { [Error: EACCES, unlink '/usr/local/lib/node_modules/express']
npm ERR! error rolling back errno: 3,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/express' }
npm ERR! Error: EACCES, unlink '/usr/local/lib/node_modules/express'
npm ERR! { [Error: EACCES, unlink '/usr/local/lib/node_modules/express']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/express' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "express"
npm ERR! cwd /Users/user/Desktop/Projects/node
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path /usr/local/lib/node_modules/express
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, unlink '/usr/local/lib/node_modules/express'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/user/Desktop/Projects/node/npm-debug.log
npm ERR! not ok code 0
"npm install -g express-generator":
npm http GET https://registry.npmjs.org/express-generator
npm http 200 https://registry.npmjs.org/express-generator
npm http GET https://registry.npmjs.org/express-generator/-/express-generator-4.2.0.tgz
npm http 200 https://registry.npmjs.org/express-generator/-/express-generator-4.2.0.tgz
npm ERR! error rolling back Error: EACCES, unlink '/usr/local/lib/node_modules/express-generator'
npm ERR! error rolling back express-generator#4.2.0 { [Error: EACCES, unlink '/usr/local/lib/node_modules/express-generator']
npm ERR! error rolling back errno: 3,
npm ERR! error rolling back code: 'EACCES',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/express-generator' }
npm ERR! Error: EACCES, unlink '/usr/local/lib/node_modules/express-generator'
npm ERR! { [Error: EACCES, unlink '/usr/local/lib/node_modules/express-generator']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/local/lib/node_modules/express-generator' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "express-generator"
npm ERR! cwd /Users/user/Desktop/Projects/node
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path /usr/local/lib/node_modules/express-generator
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, unlink '/usr/local/lib/node_modules/express-generator'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/user/Desktop/Projects/node/npm-debug.log
npm ERR! not ok code 0
Did you try with sudo? It looks like the current user does not have access to /usr/local/lib.
By the way, you want to install express-generator globally for the project generator nowadays, not the express package globally anymore.
this is permission issue..
if you use without sudo, using this commandline..
sudo chown -R `whoami` ~/.npm
npm throws error without sudo
this link is best answer to you.
Run cmd as Administrator and try installing it again. It worked for me.
I had same problem.
I had command "npm cache clean" -> not work
ulimit -n 2560 -> not work
so I
delete .npm directory and run this command "npm search -g"
and removed some module -> in my case grunt*
that works for me.

Resources