Hello after a long time I gave Amber another try and I am getting an error
--
On the other hand it looks like the project works and I can commit to it.
--------------- THE ERROR-----------------------
"Last login: Fri Jun 27 00:41:00 on console kilon-imac:~ kilon$ cd git kilon-imac:git kilon$ cd MyApp/ kilon-imac:MyApp kilon$ ls kilon-imac:MyApp kilon$ amber init Welcome to Amber version 0.13.0-pre (NodeJS 0.10.29). Running "init:/usr/local/lib/node_modules/amber-cli/node_modules/grunt-init-amber" (init) task This task will create one or more files in the current directory, based on the environment and the answers to a few questions. Note that answering "?" to any question will show question-specific help and answering "none" to most questions will leave its value blank.
"grunt-init-amber" template notes: Project title should be a human-readable title.
Please answer the following: [?] Project title (Application or Library Title) MyApp [?] Main class and package of Amber application. Project name is derived by lowercasing this. (Myapp) [?] Description (The Application or The Library doing The Thing.) [?] Author name (kilon) [?] Author email ([hidden email]) [?] Namespace of the new Amber package. (amber-myapp) [?] Version (0.1.0) [?] Project git repository (git://github.com/kilon/MyApp.git) [?] Project homepage (https://github.com/kilon/MyApp) [?] Project issues tracker (https://github.com/kilon/MyApp/issues) [?] Author url (none) [?] Licenses (MIT) [?] Do you need to make any changes to the above before continuing? (y/N) n Writing Gruntfile.js...OK Writing README.md...OK Writing .gitignore...OK Writing index.html...OK Writing src/Myapp.js...OK Writing src/Myapp.st...OK Writing src/Myapp-Tests.js...OK Writing src/Myapp-Tests.st...OK Writing LICENSE-MIT...OK Writing package.json...OK
Initialized from template "grunt-init-amber". You need to have these installed globally via npm: amber-cli_; _grunt-cli_; _bower. Now, install project dependencies with bower install, tool dependencies with npm install and optionally, recompile with grunt. If you are running amber init, these three tasks are going to be performed for you now. Afterwards, start the development server with amber serve. Your application is then accessible via http://localhost:4000/ Done, without errors. bower amber#~0.12.4 cached git://github.com/amber-smalltalk/amber.git#0.12.4 bower amber#~0.12.4 validate 0.12.4 against git://github.com/amber-smalltalk/amber.git#~0.12.4 bower bootstrap#* cached http://getbootstrap.com/2.3.2/assets/bootstrap.zip bower bootstrap#* validate http://getbootstrap.com/2.3.2/assets/bootstrap.zip#* bower jquery-tabby#* cached git://github.com/alanhogan/Tabby.git#925c5a416a bower jquery-tabby#* validate 925c5a416a against git://github.com/alanhogan/Tabby.git#* bower showdown#~0.3.1 cached git://github.com/coreyti/showdown.git#0.3.1 bower showdown#~0.3.1 validate 0.3.1 against git://github.com/coreyti/showdown.git#~0.3.1 bower jquery-ui#~1.10.3 cached git://github.com/components/jqueryui.git#1.10.4 bower jquery-ui#~1.10.3 validate 1.10.4 against git://github.com/components/jqueryui.git#~1.10.3 bower codemirror#~3.20.0 cached git://github.com/marijnh/CodeMirror.git#3.20.0 bower codemirror#~3.20.0 validate 3.20.0 against git://github.com/marijnh/CodeMirror.git#~3.20.0 bower es5-shim#~2.1.0 cached git://github.com/es-shims/es5-shim.git#2.1.0 bower es5-shim#~2.1.0 validate 2.1.0 against git://github.com/es-shims/es5-shim.git#~2.1.0 bower jquery#~1.10.2 cached git://github.com/jquery/jquery.git#1.10.2 bower jquery#~1.10.2 validate 1.10.2 against git://github.com/jquery/jquery.git#~1.10.2 bower require-css#~0.0.8 cached git://github.com/guybedford/require-css.git#0.0.8 bower require-css#~0.0.8 validate 0.0.8 against git://github.com/guybedford/require-css.git#~0.0.8 bower jquery-ui#~1.10.3 new version for git://github.com/components/jqueryui.git#~1.10.3 bower jquery-ui#~1.10.3 resolve git://github.com/components/jqueryui.git#~1.10.3 bower jquery-ui#~1.10.3 download https://github.com/components/jqueryui/archive/1.10.4.tar.gz bower bootstrap#* new version for http://getbootstrap.com/2.3.2/assets/bootstrap.zip#* bower bootstrap#* resolve http://getbootstrap.com/2.3.2/assets/bootstrap.zip#* bower bootstrap#* download http://getbootstrap.com/2.3.2/assets/bootstrap.zip bower bootstrap#* extract bootstrap.zip bower bootstrap#* resolved http://getbootstrap.com/2.3.2/assets/bootstrap.zip bower jquery-ui#~1.10.3 extract archive.tar.gz bower jquery-ui#~1.10.3 resolved git://github.com/components/jqueryui.git#1.10.4 bower amber#~0.12.4 install amber#0.12.4 bower jquery-tabby#* install jquery-tabby#925c5a416a bower require-css#~0.0.8 install require-css#0.0.8 bower showdown#~0.3.1 install showdown#0.3.1 bower es5-shim#~2.1.0 install es5-shim#2.1.0 bower codemirror#~3.20.0 install codemirror#3.20.0 bower jquery#~1.10.2 install jquery#1.10.2 bower bootstrap#* install bootstrap bower jquery-ui#~1.10.3 install jquery-ui#1.10.4 amber#0.12.4 bower_components/amber ├── bootstrap ├── codemirror#3.20.0 ├── es5-shim#2.1.0 ├── jquery#1.10.2 ├── jquery-tabby#925c5a416a ├── jquery-ui#1.10.4 ├── require-css#0.0.8 └── showdown#0.3.1
jquery-tabby#925c5a416a bower_components/jquery-tabby require-css#0.0.8 bower_components/require-css showdown#0.3.1 bower_components/showdown es5-shim#2.1.0 bower_components/es5-shim codemirror#3.20.0 bower_components/codemirror jquery#1.10.2 bower_components/jquery bootstrap bower_components/bootstrap jquery-ui#1.10.4 bower_components/jquery-ui └── jquery#1.10.2 npm install exec error: { [Error: Command failed: npm ERR! Error: EACCES, open '/Users/kilon/.npm/grunt/0.4.5/package/package.json' npm ERR! { [Error: EACCES, open '/Users/kilon/.npm/grunt/0.4.5/package/package.json'] npm ERR! errno: 3, npm ERR! code: 'EACCES', npm ERR! path: '/Users/kilon/.npm/grunt/0.4.5/package/package.json', npm ERR! parent: 'myapp' } 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" npm ERR! cwd /Users/kilon/git/MyApp npm ERR! node -v v0.10.29 npm ERR! npm -v 1.4.14 npm ERR! path /Users/kilon/.npm/grunt/0.4.5/package/package.json npm ERR! code EACCES npm ERR! errno 3 npm ERR! stack Error: EACCES, open '/Users/kilon/.npm/grunt/0.4.5/package/package.json' npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/kilon/git/MyApp/npm-debug.log npm ERR! not ok code 0 ] killed: false, code: 3, signal: null } kilon-imac:MyApp kilon$ "
------------END OF ERROR------------------- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
Why are you reporting an error in the mailing list? Issues should be raised on amber github.
BTW this is very likely not an amber init error. In your machine, locally run 'npm install' fails. amber init just ran it for you (as it runs 'bower install' and a few other commands) and presented you with an error. IOW, if you ran 'npm install' by hand in that directory after running amber init, it should have ended up with the same error. You should make 'npm install' work (I don't know how). It seems you have some access issue with your local npm cache (maybe 'npm cache clean' or 'sudo npm cache clean' may do the trick). Not an `amber init` error, though, it just ran the npm command which failed. Herby kilon alios wrote: > Hello after a long time I gave Amber another try and I am getting an error > > > On the other hand it looks like the project works and I can commit to it. > > --------------- THE ERROR----------------------- > > "Last login: Fri Jun 27 00:41:00 on console > > kilon-imac:~ kilon$ cd git > > kilon-imac:git kilon$ cd MyApp/ > > kilon-imac:MyApp kilon$ ls > > kilon-imac:MyApp kilon$ amber init > > Welcome to Amber version 0.13.0-pre (NodeJS 0.10.29). > > Running > "init:/usr/local/lib/node_modules/amber-cli/node_modules/grunt-init-amber" > (init) task > > This task will create one or more files in the current directory, > based on the > > environment and the answers to a few questions. Note that answering > "?" to any > > question will show question-specific help and answering "none" to most > questions > > will leave its value blank. > > > *"grunt-init-amber" template notes:* > > Project title should be a human-readable title. > > > *Please answer the following:* > > [?] Project title (Application or Library Title)MyApp > > [?] Main class and package of Amber application. > > Project name is derived by lowercasing this. (Myapp) > > [?] Description (The Application or The Library doing The Thing.) > > [?] Author name (kilon) > > [?] Author email ([hidden email] <mailto:[hidden email]>) > > [?] Namespace of the new Amber package. (amber-myapp) > > [?] Version (0.1.0) > > [?] Project git repository (git://github.com/kilon/MyApp.git > <http://github.com/kilon/MyApp.git>) > > [?] Project homepage (https://github.com/kilon/MyApp) > > [?] Project issues tracker (https://github.com/kilon/MyApp/issues) > > [?] Author url (none) > > [?] Licenses (MIT) > > [?] Do you need to make any changes to the above before continuing? (y/N)n > > > Writing Gruntfile.js...OK > > Writing README.md...OK > > Writing .gitignore...OK > > Writing index.html...OK > > Writing src/Myapp.js...OK > > Writing src/Myapp.st...OK > > Writing src/Myapp-Tests.js...OK > > Writing src/Myapp-Tests.st...OK > > Writing LICENSE-MIT...OK > > Writing package.json...OK > > > *Initialized from template "grunt-init-amber".* > > You need to have these installed globally via npm: amber-cli_; > _grunt-cli_; > > _bower. Now, install pro > > dependencies with npm install and optionally, recompile with grunt. If you > > are running amber init, these three tasks are going to be performed > for you > > now. Afterwards, start the development server with amber serve. Your > > application is then accessible via http://localhost:4000/ > > > Done, without errors. > > bower amber#~0.12.4 cached > git://github.com/amber-smalltalk/amber.git#0.12.4 > <http://github.com/amber-smalltalk/amber.git#0.12.4> > > bower amber#~0.12.4 validate 0.12.4 against > git://github.com/amber-smalltalk/amber.git#~0.12.4 > <http://github.com/amber-smalltalk/amber.git#~0.12.4> > > bower bootstrap#* cached > http://getbootstrap.com/2.3.2/assets/bootstrap.zip > > bower bootstrap#* validate > http://getbootstrap.com/2.3.2/assets/bootstrap.zip#* > > bower jquery-tabby#* cached > git://github.com/alanhogan/Tabby.git#925c5a416a > <http:// > > bower jquery-tabby#* validate 925c5a416a against > git://github.com/alanhogan/Tabby.git#* > <http://github.com/alanhogan/Tabby.git#*> > > bower showdown#~0.3.1 cached > git://github.com/coreyti/showdown.git#0.3.1 > <http://github.com/coreyti/showdown.git#0.3.1> > > bower showdown#~0.3.1 validate 0.3.1 against > git://github.com/coreyti/showdown.git#~0.3.1 > <http://github.com/coreyti/showdown.git#~0.3.1> > > bower jquery-ui#~1.10.3 cached > git://github.com/components/jqueryui.git#1.10.4 > <http://github.com/components/jqueryui.git#1.10.4> > > bower jquery-ui#~1.10.3 validate 1.10.4 against > git://github.com/components/jqueryui.git#~1.10.3 > <http://github.com/components/jqueryui.git#~1.10.3> > > bower codemirror#~3.20.0 cached > git://github.com/marijnh/CodeMirror.git#3.20.0 > <http://github.com/marijnh/CodeMirror.git#3.20.0> > > bower codemirror#~3.20.0 validate > git://github.com/marijnh/CodeMirror.git#~3.20.0 > <http://github.com/marijnh/CodeMirror.git#~3.20.0> > > bower es5-shim#~2.1.0 cached > git://github.com/es-shims/es5-shim.git#2.1.0 > <http://github.com/es-shims/es5-shim.git#2.1.0> > > bower es5-shim#~2.1.0 validate 2.1.0 against > git://github.com/es-shims/es5-shim.git#~2.1.0 > <http://github.com/es-shims/es5-shim.git#~2.1.0> > > bower jquery#~1.10.2 cached > git://github.com/jquery/jquery.git#1.10.2 > <http://github.com/jquery/jquery.git#1.10.2> > > bower jquery#~1.10.2 validate 1.10.2 against > git://github.com/jquery/jquery.git#~1.10.2 > <http://github.com/jquery/jquery.git#~1.10.2> > > bower require-css#~0.0.8 cached > git://github.com/guybedford/require-css.git#0.0.8 > <http://github.com/guybedford/require-css.git#0.0.8> > > bower require-css#~0.0.8 validate 0.0.8 against > git://github.com/guybedford/require-css.git#~0.0.8 > <http://github. > > bower jquery-ui#~1.10.3 new version for > git://github.com/components/jqueryui.git#~1.10.3 > <http://github.com/components/jqueryui.git#~1.10.3> > > bower jquery-ui#~1.10.3 resolve > git://github.com/components/jqueryui.git#~1.10.3 > <http://github.com/components/jqueryui.git#~1.10.3> > > bower jquery-ui#~1.10.3 download > https://github.com/components/jqueryui/archive/1.10.4.tar.gz > > bower bootstrap#* new version for > http://getbootstrap.com/2.3.2/assets/bootstrap.zip#* > > bower bootstrap#* resolve > http://getbootstrap.com/2.3.2/assets/bootstrap.zip#* > > bower bootstrap#* download > http://getbootstrap.com/2.3.2/assets/bootstrap.zip > > bower bootstrap#* extract bootstrap.zip > > bower bootstrap#* resolved > http://getbootstrap.com/2.3.2/assets/bootstrap.zip > > bower jquery-ui#~1.10.3 extract archive.tar.gz > > bower jqu > git://github.com/components/jqueryui.git#1.10.4 > <http://github.com/components/jqueryui.git#1.10.4> > > bower amber#~0.12.4 install amber#0.12.4 > > bower jquery-tabby#* install jquery-tabby#925c5a416a > > bower require-css#~0.0.8 install require-css#0.0.8 > > bower showdown#~0.3.1 install showdown#0.3.1 > > bower es5-shim#~2.1.0 install es5-shim#2.1.0 > > bower codemirror#~3.20.0 install codemirror#3.20.0 > > bower jquery#~1.10.2 install jquery#1.10.2 > > bower bootstrap#* install bootstrap > > bower jquery-ui#~1.10.3 install jquery-ui#1.10.4 > > > amber#0.12.4 bower_components/amber > > ├── bootstrap > > ├── codemirror#3.20.0 > > ├── es5-shim#2.1.0 > > ├── jquery#1.10.2 > > ├── jquery-tabby#925c5a416a > > ├── jquery-ui#1.10.4 > > ├── require-css#0.0.8 > > └── showdown#0.3.1 > > > jquery-tabby#925c5a416a bower_com > > > require-css#0.0.8 bower_components/require-css > > > showdown#0.3.1 bower_components/showdown > > > es5-shim#2.1.0 bower_components/es5-shim > > > codemirror#3.20.0 bower_components/codemirror > > > jquery#1.10.2 bower_components/jquery > > > bootstrap bower_components/bootstrap > > > jquery-ui#1.10.4 bower_components/jquery-ui > > └── jquery#1.10.2 > > npm install exec error: > > { [Error: Command failed: npm ERR! Error: EACCES, open > '/Users/kilon/.npm/grunt/0.4.5/package/package.json' > > npm ERR! { [Error: EACCES, open > '/Users/kilon/.npm/grunt/0.4.5/package/package.json'] > > npm ERR! errno: 3, > > npm ERR! code: 'EACCES', > > npm ERR! path: '/Users/kilon/.npm/grunt/0.4.5/package/package.json', > > npm ERR! parent: 'myapp' } > > 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" > > npm ERR! cwd /User > > npm ERR! node -v v0.10.29 > > npm ERR! npm -v 1.4.14 > > npm ERR! path /Users/kilon/.npm/grunt/0.4.5/package/package.json > > npm ERR! code EACCES > > npm ERR! errno 3 > > npm ERR! stack Error: EACCES, open > '/Users/kilon/.npm/grunt/0.4.5/package/package.json' > > npm ERR! > > npm ERR! Additional logging details can be found in: > > npm ERR! /Users/kilon/git/MyApp/npm-debug.log > > npm ERR! not ok code 0 > > ] killed: false, code: 3, signal: null } > > kilon-imac:MyApp kilon$ " > > > ------------END OF ERROR------------------- > > -- > You received this message because you are subscribed to the Google > Groups "amber-lang" group. > To unsubscribe from this group and stop receiving emails from it, send > an email to [hidden email] > <mailto:[hidden email]>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
yes indeed "npm install" displays same error but "sudo npm install" does not, weird WoW nice you solved my problem with "sudo npm cache clean" , there is no more error with amber init , nice, thank you very much. I did not report it to github because I did not even know whether it was an Amber problem or just node.js problem. Next time I will :)
On Fri, Jun 27, 2014 at 1:06 AM, Herby Vojčík <[hidden email]> wrote: Why are you reporting an error in the mailing list? Issues should be raised on amber github. You received this message because you are subscribed to the Google Groups "amber-lang" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. For more options, visit https://groups.google.com/d/optout. |
In reply to this post by Herby Vojčík
Thanks for the suggestion to try 'sudo npm cache clean'. I had the same problem as the original poster, and everything seems to be working fine now.
|
Administrator
|
Forwarding message which seems to have never made it to the list (probably posted via Nabble w/o subscribing)...
Cheers,
Sean |
Free forum by Nabble | Edit this page |