yeoman / generator-polymer

Scaffold out a Polymer project
http://polymer-project.org
926 stars 150 forks source link

Ubuntu: Generator is exiting with Node error var cwd = process.cwd(); #44

Closed robabby closed 9 years ago

robabby commented 10 years ago

I am working on Ubuntu 14.04LTS with Node v0.10.25, npm v1.3.10, yeoman v1.1.2, and generator-polymer v0.2.2.

Running the generator-polymer after the yo command exits with the following Node error:

node.js:811
    var cwd = process.cwd();
                      ^
Error: ENOENT, no such file or directory
    at Function.startup.resolveArgv0 (node.js:811:23)
    at startup (node.js:58:13)
    at node.js:902:3

Googling the error will get you here: https://github.com/nodejitsu/forever/issues/200

Here is a dump of my console:

stat30fbliss@rob-UbuntuPad:~/Dropbox/Workbench$ mkdir polymer && cd polymer
stat30fbliss@rob-UbuntuPad:~/Dropbox/Workbench/polymer$ yo
[?] What would you like to do? Run the Polymer generator (0.2.2)

Make sure you're in the directory you want to scaffold into.
This generator can also be run with: yo polymer

     _-----_
    |       |    .--------------------------.
    |--(o)--|    | Out of the box I include |
   `---------´   |        the Polymer       |
    ( _´U`_ )    |       seed-element.      |
    /___A___\    '--------------------------'
     |  ~  |     
   __'.___.'__   
 ´   `  |° ´ Y ` 

[?] What is your GitHub username? stat30fbliss
[?] What is your element's name: polymer
   create .gitignore
   create .gitattributes
   create .bowerrc
   create bower.json
   create .jshintrc
   create .editorconfig
   create polymer.css
   create polymer.html
   create index.html
   create demo.html
   create README.md

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

bower cached        git://github.com/Polymer/polymer.git#0.3.3
bower validate      0.3.3 against git://github.com/Polymer/polymer.git#~0.3.1
bower cached        git://github.com/Polymer/polymer.git#0.3.3
bower validate      0.3.3 against git://github.com/Polymer/polymer.git#>=0.3.0 <1.0.0
bower install       polymer#0.3.3

polymer#0.3.3 
├── core-component-page#0.3.3
└── platform#0.3.3

Bye from us! Chat soon.

            Addy Osmani
          Sindre Sorhus
        Brian Ford
     Eric Bidelman
              Paul Irish
     Mickael Daniel
          Pasca1 Hartig
      Stephen S.wchuk
    Frederick R0s

stat30fbliss@rob-UbuntuPad:~/Dropbox/Workbench/polymer$ 
node.js:811
    var cwd = process.cwd();
                      ^
Error: ENOENT, no such file or directory
    at Function.startup.resolveArgv0 (node.js:811:23)
    at startup (node.js:58:13)
    at node.js:902:3

Here is a screenshot of my directory after the generator fails: Folder Screenshot

All of the files are populated. The only listing in bower.json is polymer:

{
  "name": "polymer",
  "version": "0.0.0",
  "keywords": "seed, polymer, web-components",
  "main": "polymer.html",
  "dependencies": {
    "polymer": "Polymer/polymer#~0.3.1"
  }
}

Let me know if I can provide any more details.

ragingwind commented 10 years ago

It would be help for you https://github.com/yeoman/yeoman/issues/1097

robdodson commented 10 years ago

Are you still seeing this issue after @ragingwind's suggestion?