FamousArchives / generator-famous

for those who hate doing things once
123 stars 26 forks source link

not installing the template app #37

Closed zawaung7791 closed 10 years ago

zawaung7791 commented 10 years ago

Got this issue since updating to v0.2.29: -

Trying to install a new template, get the following errors: -

famous-polyfills#0.1.1 app/lib/famous-polyfills npm ERR! Error: EACCES, mkdir '/Users/zawaung/.npm/uglify-js/2.4.14' npm ERR! { [Error: EACCES, mkdir '/Users/zawaung/.npm/uglify-js/2.4.14'] npm ERR! errno: 3, npm ERR! code: 'EACCES', npm ERR! path: '/Users/zawaung/.npm/uglify-js/2.4.14', npm ERR! parent: 'html-minifier' } 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 /Applications/MAMP/htdocs/testFamous npm ERR! node -v v0.10.29 npm ERR! npm -v 1.5.0-alpha-1 npm ERR! path /Users/zawaung/.npm/uglify-js/2.4.14 npm ERR! code EACCES npm ERR! errno 3 npm ERR! stack Error: EACCES, mkdir '/Users/zawaung/.npm/uglify-js/2.4.14' npm ERR! Error: ENOENT, lstat '/Applications/MAMP/htdocs/testFamous/node_modules/grunt-contrib-connect/node_modules/connect/node_modules/debug/node_modules/ms/.npmignore' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Darwin 13.3.0 npm ERR! command "node" "/usr/local/bin/npm" "install" npm ERR! cwd /Applications/MAMP/htdocs/testFamous npm ERR! node -v v0.10.29 npm ERR! npm -v 1.5.0-alpha-1 npm ERR! path /Applications/MAMP/htdocs/testFamous/node_modules/grunt-contrib-connect/node_modules/connect/node_modules/debug/node_modules/ms/.npmignore npm ERR! fstream_path /Applications/MAMP/htdocs/testFamous/node_modules/grunt-contrib-connect/node_modules/connect/node_modules/debug/node_modules/ms/.npmignore npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.:107:15) npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/Applications/MAMP/htdocs/testFamous/node_modules/grunt-contrib-connect/node_modules/connect/node_modules/serve-index/public' npm ERR! error rolling back connect@2.19.6 { [Error: ENOTEMPTY, rmdir '/Applications/MAMP/htdocs/testFamous/node_modules/grunt-contrib-connect/node_modules/connect/node_modules/serve-index/public'] npm ERR! error rolling back errno: 53, npm ERR! error rolling back code: 'ENOTEMPTY', npm ERR! error rolling back path: '/Applications/MAMP/htdocs/testFamous/node_modules/grunt-contrib-connect/node_modules/connect/node_modules/serve-index/public' } npm WARN prefer global bower@1.3.7 should be installed with -g npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Applications/MAMP/htdocs/testFamous/npm-debug.log npm ERR! not ok code 0

Any ideas?

Cheers

MylesBorins commented 10 years ago

Seems like it is a patching issue inside of your .npm folder…. Can you tell me a bit more about your system? I noticed you are running the npm beta, can you try this again on stable?

On Jul 7, 2014, at 3:16 PM, zaw win aung notifications@github.com wrote:

Got this issue since updating to v0.2.29: -

Trying to install a new template, get the following errors: -

famous-polyfills#0.1.1 app/lib/famous-polyfills npm ERR! Error: EACCES, mkdir '/Users/zawaung/.npm/uglify-js/2.4.14' npm ERR! { [Error: EACCES, mkdir '/Users/zawaung/.npm/uglify-js/2.4.14'] npm ERR! errno: 3, npm ERR! code: 'EACCES', npm ERR! path: '/Users/zawaung/.npm/uglify-js/2.4.14', npm ERR! parent: 'html-minifier' } 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 /Applications/MAMP/htdocs/testFamous npm ERR! node -v v0.10.29 npm ERR! npm -v 1.5.0-alpha-1 npm ERR! path /Users/zawaung/.npm/uglify-js/2.4.14 npm ERR! code EACCES npm ERR! errno 3 npm ERR! stack Error: EACCES, mkdir '/Users/zawaung/.npm/uglify-js/2.4.14' npm ERR! Error: ENOENT, lstat '/Applications/MAMP/htdocs/testFamous/node_modules/grunt-contrib-connect/node_modules/connect/node_modules/debug/node_modules/ms/.npmignore' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Darwin 13.3.0 npm ERR! command "node" "/usr/local/bin/npm" "install" npm ERR! cwd /Applications/MAMP/htdocs/testFamous npm ERR! node -v v0.10.29 npm ERR! npm -v 1.5.0-alpha-1 npm ERR! path /Applications/MAMP/htdocs/testFamous/node_modules/grunt-contrib-connect/node_modules/connect/node_modules/debug/node_modules/ms/.npmignore npm ERR! fstream_path /Applications/MAMP/htdocs/testFamous/node_modules/grunt-contrib-connect/node_modules/connect/node_modules/debug/node_modules/ms/.npmignore npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26 npm ERR! fstream_stack Object.oncomplete (evalmachine.:107:15) npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/Applications/MAMP/htdocs/testFamous/node_modules/grunt-contrib-connect/node_modules/connect/node_modules/serve-index/public' npm ERR! error rolling back connect@2.19.6 { [Error: ENOTEMPTY, rmdir '/Applications/MAMP/htdocs/testFamous/node_modules/grunt-contrib-connect/node_modules/connect/node_modules/serve-index/public'] npm ERR! error rolling back errno: 53, npm ERR! error rolling back code: 'ENOTEMPTY', npm ERR! error rolling back path: '/Applications/MAMP/htdocs/testFamous/node_modules/grunt-contrib-connect/node_modules/connect/node_modules/serve-index/public' } npm WARN prefer global bower@1.3.7 should be installed with -g npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Applications/MAMP/htdocs/testFamous/npm-debug.log npm ERR! not ok code 0

Any ideas?

Cheers

— Reply to this email directly or view it on GitHub.

zawaung7791 commented 10 years ago

Will try with the stable version and get back to you

zawaung7791 commented 10 years ago

Have removed nodejs, npm and .npm folder from my system, reinstalled node and kept npm to stable version included with node pkg.

Tried running yo famous again and get the following output: -

create README.md create app/index.html create app/content/images/famous_logo.png create app/styles/app.css create app/src/requireConfig.js create app/src/main.js create package.json create bower.json create Gruntfile.js create .editorconfig create .bowerrc create .eslintrc create .jscsrc create .gitignore create .travis.yml create grunt/aliases.js create grunt/eslint.js create grunt/jscs.js create grunt/watch.js create grunt/connect.js create grunt/clean.js create grunt/bower.js create grunt/rev.js create grunt/processhtml.js create grunt/useminPrepare.js create grunt/usemin.js create grunt/htmlmin.js create grunt/copy.js create grunt/requirejs.js

I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try running the command yourself.

bower famous-polyfills#0.1.1 cached https://github.com/Famous/polyfills.git#0.1.1 bower famous-polyfills#0.1.1 validate 0.1.1 against https://github.com/Famous/polyfills.git#0.1.1 bower requirejs#~2.1.11 cached git://github.com/jrburke/requirejs-bower.git#2.1.14 bower requirejs#~2.1.11 validate 2.1.14 against git://github.com/jrburke/requirejs-bower.git#~2.1.11 bower almond#~0.2.9 cached git://github.com/jrburke/almond.git#0.2.9 bower almond#~0.2.9 validate 0.2.9 against git://github.com/jrburke/almond.git#~0.2.9 bower famous#~0.2.2 cached git://github.com/Famous/famous.git#0.2.2 bower famous#~0.2.2 validate 0.2.2 against git://github.com/Famous/famous.git#~0.2.2 npm WARN deprecated grunt-jscs-checker@0.6.1: Package was renamed to 'grunt-jscs' bower requirejs#~2.1.11 install requirejs#2.1.14 bower famous#~0.2.2 install famous#0.2.2 bower almond#~0.2.9 install almond#0.2.9 bower famous-polyfills#0.1.1 install famous-polyfills#0.1.1 | requirejs#2.1.14 app/lib/requirejs

famous#0.2.2 app/lib/famous

almond#0.2.9 app/lib/almond

famous-polyfills#0.1.1 app/lib/famous-polyfills npm ERR! Error: EACCES, open '/Users/zawaung/.npm/chalk/0.4.0/package/package.json' npm ERR! { [Error: EACCES, open '/Users/zawaung/.npm/chalk/0.4.0/package/package.json'] npm ERR! errno: 3, npm ERR! code: 'EACCES', npm ERR! path: '/Users/zawaung/.npm/chalk/0.4.0/package/package.json', npm ERR! parent: 'time-grunt' } 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/zawaung/workspace/test npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.14 npm ERR! path /Users/zawaung/.npm/chalk/0.4.0/package/package.json npm ERR! code EACCES npm ERR! errno 3 npm ERR! stack Error: EACCES, open '/Users/zawaung/.npm/chalk/0.4.0/package/package.json' npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/zawaung/workspace/test/npm-debug.log npm ERR! not ok code 0

Woot! It appears that everything installed correctly. Please run the command grunt serve to launch the development server. Most questions you have will be answered in the generated README.md

Again, error with the famous-polyfills. Cannot get the grunt file to work as well.

Also tried running "npm install" post installation and get the following error: -

npm WARN deprecated grunt-jscs-checker@0.6.1: Package was renamed to 'grunt-jscs' npm ERR! Error: EACCES, open '/Users/zawaung/.npm/chalk/0.4.0/package/package.json' npm ERR! { [Error: EACCES, open '/Users/zawaung/.npm/chalk/0.4.0/package/package.json'] npm ERR! errno: 3, npm ERR! code: 'EACCES', npm ERR! path: '/Users/zawaung/.npm/chalk/0.4.0/package/package.json', npm ERR! parent: 'time-grunt' } 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/zawaung/workspace/test npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.14 npm ERR! path /Users/zawaung/.npm/chalk/0.4.0/package/package.json npm ERR! code EACCES npm ERR! errno 3 npm ERR! stack Error: EACCES, open '/Users/zawaung/.npm/chalk/0.4.0/package/package.json' npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/zawaung/workspace/test/npm-debug.log npm ERR! not ok code 0

Should /Users/zawaung/.npm/chalk/ be set not to root?

Thanks for your help

zawaung7791 commented 10 years ago

Have tried changing he ~/.npm folder ownership to myself and then yo famous, got the following warnings: -

npm WARN deprecated grunt-jscs-checker@0.6.1: Package was renamed to 'grunt-jscs' npm WARN prefer global bower@1.3.7 should be installed with -g

No errors, so tried grunt serve and got this error: -

Loading "Gruntfile.js" tasks...ERROR

Error: Cannot find module 'famous-metrics' Warning: Task "serve" not found. Use --force to continue.

Aborted due to warnings.

Have got it working, by installing famous-metrics using npm?

Cheers

MylesBorins commented 10 years ago

Try removing ~/.famousrc and running the generator again

On Jul 7, 2014, at 10:40 PM, zaw win aung notifications@github.com wrote:

Have tried changing he ~/.npm folder ownership to myself and then yo famous, got the following warnings: -

npm WARN deprecated grunt-jscs-checker@0.6.1: Package was renamed to 'grunt-jscs' npm WARN prefer global bower@1.3.7 should be installed with -g

No errors, so tried grunt serve and got this error: -

Loading "Gruntfile.js" tasks...ERROR

Error: Cannot find module 'famous-metrics' Warning: Task "serve" not found. Use --force to continue.

Aborted due to warnings.

Have got it working, by installing famous-metrics using npm?

Cheers

— Reply to this email directly or view it on GitHub.

zawaung7791 commented 10 years ago

Cheers for your help, working again

trusktr commented 10 years ago

I'm getting that same error. Removing ~/.famousrc then doing yo famous again still doesn't work. This is my first time trying famous. This is what I did:

    npm install -g yo grunt-cli bower generator-famous
    mkdir newProject
    cd newProject
    yo famous
    grunt serve

and it simply doesn't work.

MylesBorins commented 10 years ago

I'm on irc right now if you want to try and figure this out.

if the generator is acting up you can also try the browserify-seed :D

trusktr commented 10 years ago

Ok, so answering no to use yeoman/insight gets me past that problem, and now it says Error: Cannot find module 'ini'. This process seems a bit untested.

MylesBorins commented 10 years ago

In house we have been experimenting with moving towards a much leaner stack in starting projects. If you could share a gist with the errors you've gotten from both of these processes we can definitely work out what is going on.

Coming on irc will also help us work through this really quickly https://webchat.freenode.net/ join #famous