Like many, I'm also having problems installing the Yeoman generator. I've looked at many of the examples in Stackoverflow and I've tried a number of my own solutions but I haven't been able to make it work. Any help I could receive to solve this problem would be much appreciated. I tried installing yo angularfire and sudo angularfire.
Thank you.
Here is my error list:
npm ERR! Error: EACCES, mkdir '/Users/mac/.npm/fs-extra/0.10.0'
npm ERR! { [Error: EACCES, mkdir '/Users/mac/.npm/fs-extra/0.10.0']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/mac/.npm/fs-extra/0.10.0',
npm ERR! parent: 'imagemin' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 11.4.2
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/mac/mcoseo7
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! path /Users/mac/.npm/fs-extra/0.10.0
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/Users/mac/.npm/fs-extra/0.10.0'
npm ERR! not ok code 0
app/index.html modified.
CXX(target) Release/obj.target/fse/fsevents.o
In file included from ../fsevents.cc:86:
../src/constants.cc:10:66: warning: template argument uses unnamed type [-Wunnamed-type-template-args]
object->Set(NanNew<v8::String>("kFSEventStreamEventFlagNone"), NanNew<v8::Integer>(kFSEventStreamEventFlagNone));
^~~~~~
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/FSEvents.h:290:1: note: unnamed type used
in template argument was declared here
enum {
^
1 warning generated.
SOLINK_MODULE(target) Release/fse.node
SOLINK_MODULE(target) Release/fse.node: Finished
npm ERR! Error: EACCES, mkdir '/Users/mac/.npm/npmconf/2.0.9'
npm ERR! { [Error: EACCES, mkdir '/Users/mac/.npm/npmconf/2.0.9']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/mac/.npm/npmconf/2.0.9',
npm ERR! parent: 'phantomjs' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 11.4.2
npm ERR! command "node" "/usr/local/bin/npm" "install" "karma-phantomjs-launcher" "karma-jasmine"
"grunt-karma" "--save-dev"
npm ERR! cwd /Users/mac/mcoseo7
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! path /Users/mac/.npm/npmconf/2.0.9
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/Users/mac/.npm/npmconf/2.0.9'
npm ERR! not ok code 0
White-Macbook-2:mcoseo7 mac$ grunt
>> Local Npm module "grunt-autoprefixer" not found. Is it installed?
>> Local Npm module "grunt-contrib-htmlmin" not found. Is it installed?
>> Local Npm module "grunt-contrib-imagemin" not found. Is it installed?
>> Local Npm module "grunt-contrib-watch" not found. Is it installed?
>> Local Npm module "grunt-google-cdn" not found. Is it installed?
>> Local Npm module "grunt-newer" not found. Is it installed?
>> Local Npm module "grunt-ng-annotate" not found. Is it installed?
>> Local Npm module "grunt-svgmin" not found. Is it installed?
Warning: Task "newer:jshint" not found. Use --force to continue.
Aborted due to warnings.
Again, than you for the help!
Related
I'm trying to install the angular-firebase Yeoman generator. I get the errors listed below. What do they mean? I tried installing the generator with sudo and as a regular user. The errors were the same. I'd appreciate any help or guidance you could provide for this. Thank you!
npm ERR! Error: EACCES, mkdir '/Users/mac/.npm/fs-extra/0.10.0'
npm ERR! { [Error: EACCES, mkdir '/Users/mac/.npm/fs-extra/0.10.0']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/mac/.npm/fs-extra/0.10.0',
npm ERR! parent: 'imagemin' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 11.4.2
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/mac/mcoseo7
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! path /Users/mac/.npm/fs-extra/0.10.0
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/Users/mac/.npm/fs-extra/0.10.0'
npm ERR! not ok code 0
app/index.html modified.
CXX(target) Release/obj.target/fse/fsevents.o
In file included from ../fsevents.cc:86:
../src/constants.cc:10:66: warning: template argument uses unnamed type [-Wunnamed-type-template-args]
object->Set(NanNew<v8::String>("kFSEventStreamEventFlagNone"), NanNew<v8::Integer>(kFSEventStreamEventFlagNone));
^~~~~~
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/FSEvents.h:290:1: note: unnamed type used
in template argument was declared here
enum {
^
1 warning generated.
SOLINK_MODULE(target) Release/fse.node
SOLINK_MODULE(target) Release/fse.node: Finished
npm ERR! Error: EACCES, mkdir '/Users/mac/.npm/npmconf/2.0.9'
npm ERR! { [Error: EACCES, mkdir '/Users/mac/.npm/npmconf/2.0.9']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/mac/.npm/npmconf/2.0.9',
npm ERR! parent: 'phantomjs' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 11.4.2
npm ERR! command "node" "/usr/local/bin/npm" "install" "karma-phantomjs-launcher" "karma-jasmine"
"grunt-karma" "--save-dev"
npm ERR! cwd /Users/mac/mcoseo7
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! path /Users/mac/.npm/npmconf/2.0.9
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/Users/mac/.npm/npmconf/2.0.9'
npm ERR! not ok code 0
White-Macbook-2:mcoseo7 mac$ grunt
>> Local Npm module "grunt-autoprefixer" not found. Is it installed?
>> Local Npm module "grunt-contrib-htmlmin" not found. Is it installed?
>> Local Npm module "grunt-contrib-imagemin" not found. Is it installed?
>> Local Npm module "grunt-contrib-watch" not found. Is it installed?
>> Local Npm module "grunt-google-cdn" not found. Is it installed?
>> Local Npm module "grunt-newer" not found. Is it installed?
>> Local Npm module "grunt-ng-annotate" not found. Is it installed?
>> Local Npm module "grunt-svgmin" not found. Is it installed?
Warning: Task "newer:jshint" not found. Use --force to continue.
Thanks for the help!
either change permissions for npm using chown or use the sudo -g command to install modules. This appears to be an issue with OS permissions.
chown -R 'username' ~/.npm
Yeoman scaffolds the app without errors after that.
Nik
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/
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."
I am trying to install Yeoman using NPM, but am greeted by the following error:
Jaspers-MacBook-Pro:Sites Jasper$ sudo npm install --global yo
> fullname-native#0.1.1 install /usr/local/lib/node_modules/yo/node_modules/fullname/node_modules/fullname-native
> node-gyp rebuild
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: EPERM, utime '/Users/Jasper/.node-gyp/0.10.29'
gyp ERR! System Darwin 13.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/yo/node_modules/fullname/node_modules/fullname-native
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR! <https://github.com/TooTallNate/node-gyp/issues>
npm WARN optional dep failed, continuing fullname-native#0.1.1
/usr/local/bin/yo -> /usr/local/lib/node_modules/yo/cli.js
> yo#1.2.0 postinstall /usr/local/lib/node_modules/yo
> node ./scripts/doctor
[Yeoman Doctor] Everything looks alright!
npm WARN unmet dependency /usr/local/lib/node_modules/generator-angular/node_modules/yeoman-generator/node_modules/download/node_modules/request/node_modules/form-data requires async#'~0.9.0' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/generator-angular/node_modules/yeoman-generator/node_modules/async,
npm WARN unmet dependency which is version 0.2.10
Since Yeoman doctor says "looks allright", I tried to install te angular generator
npm install -g generator-angular
yo angular
This just returned some more errors:
npm ERR! Error: EACCES, open '/Users/Jasper/.npm/lodash/2.4.1/package/package.json'
npm ERR! { [Error: EACCES, open '/Users/Jasper/.npm/lodash/2.4.1/package/package.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/Jasper/.npm/lodash/2.4.1/package/package.json',
npm ERR! parent: 'grunt-karma' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "karma-phantomjs-launcher" "karma-jasmine" "grunt-karma" "--save-dev"
npm ERR! cwd /Users/Jasper/Sites/test
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /Users/Jasper/.npm/lodash/2.4.1/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/Users/Jasper/.npm/lodash/2.4.1/package/package.json'
npm ERR! Error: EACCES, open '/Users/Jasper/.npm/findup-sync/0.1.3/package/package.json'
npm ERR! { [Error: EACCES, open '/Users/Jasper/.npm/findup-sync/0.1.3/package/package.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/Jasper/.npm/findup-sync/0.1.3/package/package.json',
npm ERR! parent: 'load-grunt-tasks' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/Jasper/Sites/test
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /Users/Jasper/.npm/findup-sync/0.1.3/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/Users/Jasper/.npm/findup-sync/0.1.3/package/package.json'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/Jasper/Sites/test/npm-debug.log
npm ERR! not ok code 0
I've tried to update node-gyp, uninstalled node and reinstalled via homebrew but with no success...
if I install the generator with sudo, running yo angular returns the following
npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "karma-phantomjs-launcher" "karma-jasmine" "grunt-karma" "--save-dev"
npm ERR! cwd /Users/Jasper/.npm/lodash/2.4.1/package
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! path /Users/Jasper/.npm/mkdirp/0.3.5/package/package.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, open '/Users/Jasper/.npm/mkdirp/0.3.5/package/package.json'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/Jasper/.npm/lodash/2.4.1/package/npm-debug.log
npm ERR! not ok code 0
Don't see why this isn't working, as I had it working before
I'm on a clean install of OSX Mavericks
Jasper
I had a similar issue. Get started with fixing the permissions issue:
sudo chown -R `whoami` ~/.npm
sudo chown -R `whoami` /usr/local/lib/node_modules
It's a popular issue: npm throws error without sudo
I have seen some tips on the internet on how to create the full directory structure for a node project with a command line with expressJS.
Here are some examples:
express express-skeleton << http://quickleft.com/blog/getting-started-with-express-in-node
./node_modules/.bin/express -t ejs << http://naholyr.fr/2011/08/ecrire-service-rest-nodejs-express-partie-1/
--l << http://www.techrepublic.com/article/build-nodejs-web-applications-with-express/
But none of those work for me. I have install express and update it to have it globally installed with npm update express -g but my terminal doesn't even recognize the command line express.
How can I build a web app skeleton easily with the command line? Thanks a lot
EDIT: when running the npm install -g express command line, I get this error message:
npm http GET https://registry.npmjs.org/express
npm http 200 https://registry.npmjs.org/express
npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/express'
npm ERR! { [Error: EACCES, mkdir '/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! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/local/lib/node_modules/express',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23',
npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53',
npm ERR! 'Object.oncomplete (fs.js:107:15)' ] }
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" "express"
npm ERR! cwd /Users/arnauddrizard/Documents/Dev/RestAPI
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /usr/local/lib/node_modules/express
npm ERR! fstream_path /usr/local/lib/node_modules/express
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/usr/local/lib/node_modules/express'
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:37:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/arnauddrizard/Documents/Dev/RestAPI/npm-debug.log
npm ERR! not ok code 0
npm unable to create folder inside your application folder.
Give sufficient permissons to your folder, I hope that will fix your issue.
What output do you get when you run npm install -g express? The problem is most likely that npm install -g is not installing to somewhere that's in your PATH.