Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on creating new empty solution (with Paket) #14

Open
jeroldhaas opened this issue Aug 16, 2015 · 3 comments
Open

Error on creating new empty solution (with Paket) #14

jeroldhaas opened this issue Aug 16, 2015 · 3 comments

Comments

@jeroldhaas
Copy link

Commands to repro:

> yo fsharp
> create empty solution
> What's the name of your solution? Portal.ApplicationSite.com
> Do you want to use Paket? Yes

events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: ENOENT, no such file or directory 'C:\Users\JeroldHaas\.cache\yeoman\fspr
ojects\generator-fsharp\templates\sln'
    at Error (native)
    at Object.fs.readdirSync (fs.js:761:18)
    at yeoman.generators.Base.extend._copy (C:\Users\JeroldHaas\AppData\Roaming\
npm\node_modules\generator-fsharp\app\index.js:239:24)
    at yeoman.generators.Base.extend.writing (C:\Users\JeroldHaas\AppData\Roamin
g\npm\node_modules\generator-fsharp\app\index.js:265:14)
    at C:\Users\JeroldHaas\AppData\Roaming\npm\node_modules\generator-fsharp\nod
e_modules\yeoman-generator\lib\base.js:421:16
    at processImmediate [as _immediateCallback] (timers.js:367:17)
@jeroldhaas
Copy link
Author

I looked in the cache directory, realizing that I'd run npm install as directed for generator-fsharp as administrator, so I tried following the install instructions with npm install -g yo and npm install -g generator-fsharp in a user-level command line.

After running these commands with user-level access command line, I ran the aforementioned commands again. I still get the same error:

events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: ENOENT, no such file or directory 'C:\Users\JeroldHaas\.cache\yeoman\fsprojects\generator-fsharp\templates\sln'
    at Error (native)
    at Object.fs.readdirSync (fs.js:761:18)
    at yeoman.generators.Base.extend._copy (C:\Users\JeroldHaas\AppData\Roaming\npm\node_modules\generator-fsharp\app\index.js:239:24)
    at yeoman.generators.Base.extend.writing (C:\Users\JeroldHaas\AppData\Roaming\npm\node_modules\generator-fsharp\app\index.js:265:14)
    at C:\Users\JeroldHaas\AppData\Roaming\npm\node_modules\generator-fsharp\node_modules\yeoman-generator\lib\base.js:421:16
    at processImmediate [as _immediateCallback] (timers.js:367:17)

@jeroldhaas
Copy link
Author

? What do You want to do? Create standalone project
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: ENOENT, no such file or directory 'C:\Users\JeroldHaas\.cache\yeoman\fspr
ojects\generator-fsharp\templates\templates.json'
    at Error (native)
    at Object.fs.openSync (fs.js:500:18)
    at Object.fs.readFileSync (fs.js:352:15)
    at yeoman.generators.Base.extend.askForProject (C:\Users\JeroldHaas\AppData\
Roaming\npm\node_modules\generator-fsharp\app\index.js:180:41)
    at C:\Users\JeroldHaas\AppData\Roaming\npm\node_modules\generator-fsharp\nod
e_modules\yeoman-generator\lib\base.js:421:16
    at processImmediate [as _immediateCallback] (timers.js:367:17)

@jeroldhaas
Copy link
Author

Looking in the cache dir, I see there's no dir called fsprojects, so I re-ran npm install -g generator-fsharp:

c:\Users\JeroldHaas\.cache\yeoman>npm install -g generator-fsharp
[email protected] C:\Users\JeroldHaas\AppData\Roaming\npm\node_modules\gene
rator-fsharp
├── [email protected]
├── [email protected] ([email protected], [email protected], ansi-styles@2
.1.0, [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], strip-ans
[email protected], [email protected], [email protected], [email protected], [email protected]
, [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], strin
[email protected], [email protected], [email protected], [email protected], json-string
[email protected], [email protected], [email protected], [email protected], [email protected],
[email protected], [email protected], [email protected], [email protected], tough-co
[email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], yeoman-wel
[email protected], [email protected], [email protected], [email protected], [email protected], text-t
[email protected], [email protected], [email protected], [email protected], [email protected], debug@2.
2.0, [email protected], [email protected], [email protected], [email protected], [email protected]
, [email protected], [email protected], [email protected], [email protected], prett
[email protected], [email protected], [email protected], [email protected], github-u
[email protected], [email protected], [email protected], [email protected], yeoman-e
[email protected], [email protected], [email protected], [email protected], lodas
[email protected], [email protected])

c:\Users\JeroldHaas\.cache\yeoman>dir
 Volume in drive C is Windows8_OS
 Volume Serial Number is 527F-04AF

 Directory of c:\Users\JeroldHaas\.cache\yeoman

2015-08-16  16:13    <DIR>          .
2015-08-16  16:13    <DIR>          ..
2015-08-16  15:57                40 sha
               1 File(s)             40 bytes
               2 Dir(s)  680,827,097,088 bytes free

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant