Closed StephanBijzitter closed 10 years ago
The problem is that you ran it with such, making the files in your npm cache owned by the root user.
Sudo rm -rf ~/.npm should fix it On Nov 5, 2014 6:38 AM, "Stephan Bijzitter" notifications@github.com wrote:
Tried to create a project on a new machine:
mkdir project cd project yo famous
Result:
You're using the fantastic Famo.us generator. ? Your project name: test ? Your project description: durdur ? Would you mind telling me your username on Github? hur 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 cached git://github.com/jrburke/requirejs-bower.git#2.1.15 bower validate 2.1.15 against git://github.com/jrburke/requirejs-bower.git#~2.1.11 bower cached git://github.com/Famous/famous.git#0.3.0 bower validate 0.3.0 against git://github.com/Famous/famous.git#~0.3.0-rc bower cached git://github.com/jrburke/almond.git#0.2.9 bower validate 0.2.9 against git://github.com/jrburke/almond.git#~0.2.9 bower cached git://github.com/Famous/polyfills.git#0.3.0 bower validate 0.3.0 against git://github.com/Famous/polyfills.git#~0.3.0 bower install famous-polyfills#0.3.0 bower install almond#0.2.9 bower install requirejs#2.1.15 bower install famous#0.3.0
famous-polyfills#0.3.0 app/lib/famous-polyfills
almond#0.2.9 app/lib/almond
requirejs#2.1.15 app/lib/requirejs
famous#0.3.0 app/lib/famous npm WARN prefer global bower@1.3.12 should be installed with -g npm ERR! Error: EACCES, mkdir '/Users/stephanbijzitter/.npm/async/0.1.15' npm ERR! { [Error: EACCES, mkdir '/Users/stephanbijzitter/.npm/async/0.1.15'] npm ERR! errno: 3, npm ERR! code: 'EACCES', npm ERR! path: '/Users/stephanbijzitter/.npm/async/0.1.15', npm ERR! parent: 'portscanner' } npm ERR! npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 14.0.0 npm ERR! command "node" "/usr/local/bin/npm" "install" npm ERR! cwd /Users/stephanbijzitter/Development/projects/test npm ERR! node -v v0.10.33 npm ERR! npm -v 1.4.28 npm ERR! path /Users/stephanbijzitter/.npm/async/0.1.15 npm ERR! code EACCES npm ERR! errno 3 npm ERR! stack Error: EACCES, mkdir '/Users/stephanbijzitter/.npm/async/0.1.15' 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
Stephans-MBP:test stephanbijzitter$
npm WARN prefer global bower@1.3.12 should be installed with -g bower was installed globally, so this is not on my end and you should look into this, but it is not the issue at hand.
Running sudo npm install completes the task. So I tried sudo yo famous to create a second new project, but that did not change anything.
— Reply to this email directly or view it on GitHub https://github.com/FamousTools/generator-famous/issues/45.
Yup, that did the job!
Should try to work on a better error message sometime though :+1:
Tried to create a project on a new machine:
Result:
npm WARN prefer global bower@1.3.12 should be installed with -g
bower was installed globally, so this is not on my end and you should look into this, but it is not the issue at hand.Running
sudo npm install
completes the task. So I triedsudo yo famous
to create a second new project, but that did not change anything.