Windows "Failed to lookup view "home/index"" #983

Closed
adifah opened this Issue Oct 13, 2013 · 61 comments

Comments

@adifah

adifah commented Oct 13, 2013

Problem occurs on Win7 with sails.js 0.9.7 (0.9.4 is working fine). Node version is 0.10.20.

steps to reproduce:

npm install -g sails
sails new app
cd app
sails lift

if you visit http://localhost:1337/ you will get the following error:

{
  "status": 500,
  "errors": [
    "Failed to lookup view \"home/index\""
  ]
}

can someone confirm that?

@edy

This comment has been minimized.

Show comment
Hide comment
@edy

edy Oct 13, 2013

Contributor

same here on my test machine (windows 7, node 0.10.7). sails 0.9.4 works fine too.

sails 0.9.7 on a osx machine is working.

Contributor

edy commented Oct 13, 2013

same here on my test machine (windows 7, node 0.10.7). sails 0.9.4 works fine too.

sails 0.9.7 on a osx machine is working.

@kileniklawski

This comment has been minimized.

Show comment
Hide comment
@kileniklawski

kileniklawski Oct 14, 2013

Seeing the same here. Reverted to 0.9.4 and it works.

Seeing the same here. Reverted to 0.9.4 and it works.

@michapixel

This comment has been minimized.

Show comment
Hide comment
@michapixel

michapixel Oct 14, 2013

me too.

just in case anyoneelse is wondering how to revert sails to an older version:

npm remove sails -g
npm install sails@0.9.4

me too.

just in case anyoneelse is wondering how to revert sails to an older version:

npm remove sails -g
npm install sails@0.9.4

@mikermcneil

This comment has been minimized.

Show comment
Hide comment
@mikermcneil

mikermcneil Oct 14, 2013

Member

Thanks for reporting guys- I'll look into it asap. It's a backslash thing

Member

mikermcneil commented Oct 14, 2013

Thanks for reporting guys- I'll look into it asap. It's a backslash thing

@getuliojr

This comment has been minimized.

Show comment
Hide comment
@getuliojr

getuliojr Oct 15, 2013

I am having this problem too with this version. I will try to revert to 0.9.4 for now.

I am having this problem too with this version. I will try to revert to 0.9.4 for now.

@jon419 jon419 referenced this issue in balderdashy/sails-docs Oct 15, 2013

Closed

0.9.7 #52

@hnrykf

This comment has been minimized.

Show comment
Hide comment
@hnrykf

hnrykf Oct 19, 2013

got similar error on redhat's openshift, had to revert to 0.9.4

glob error { [Error: EACCES, permission denied '/var'] errno: 3, code: 'EACCES', path: '/var', syscall: 'readdir' }
error: Error rendering view at :: /var/lib/openshift/xxx/app-root/runtime/repo/views/home/index
error: Using layout located at :: /var/lib/openshift/xxx/app-root/runtime/repo/views/layout
error: Server Error (500)
error: Error: Failed to lookup view "home/index"

hnrykf commented Oct 19, 2013

got similar error on redhat's openshift, had to revert to 0.9.4

glob error { [Error: EACCES, permission denied '/var'] errno: 3, code: 'EACCES', path: '/var', syscall: 'readdir' }
error: Error rendering view at :: /var/lib/openshift/xxx/app-root/runtime/repo/views/home/index
error: Using layout located at :: /var/lib/openshift/xxx/app-root/runtime/repo/views/layout
error: Server Error (500)
error: Error: Failed to lookup view "home/index"

@fjirari

This comment has been minimized.

Show comment
Hide comment
@fjirari

fjirari Oct 19, 2013

I was happy that a new version of sails.js was available (0.9.7). Unfortunately, I had the same problem as you and worse I did not want to go through 0.9.4 and so I had only one choice is to find a solution. Done and that took me all afternoon and I share with you and j'èspère what would be integrated quickly.

Must be modified in the file "sails \ lib \ express \ view.js"

line # 10
/ / return glob.sync (path, {nocase: true});
glob.sync return (basename (path) {cwd: dirname (path), nocase: true});

line # 28
/ / if (exists (path)) return globpath (path) [0];
if (exists (path)) return path;

line # 33
/ / if (exists (path)) return globpath (path) [0];
if (exists (path)) return path;

fjirari commented Oct 19, 2013

I was happy that a new version of sails.js was available (0.9.7). Unfortunately, I had the same problem as you and worse I did not want to go through 0.9.4 and so I had only one choice is to find a solution. Done and that took me all afternoon and I share with you and j'èspère what would be integrated quickly.

Must be modified in the file "sails \ lib \ express \ view.js"

line # 10
/ / return glob.sync (path, {nocase: true});
glob.sync return (basename (path) {cwd: dirname (path), nocase: true});

line # 28
/ / if (exists (path)) return globpath (path) [0];
if (exists (path)) return path;

line # 33
/ / if (exists (path)) return globpath (path) [0];
if (exists (path)) return path;

@darth10

This comment has been minimized.

Show comment
Hide comment
@darth10

darth10 Oct 22, 2013

👍

darth10 commented Oct 22, 2013

👍

@fyockm

This comment has been minimized.

Show comment
Hide comment
@fyockm

fyockm Oct 22, 2013

From what I can tell, the basic problem is that the "glob" module only supports forward slash on windows, and that breaks the paths. Looks like lib/express/view.js was created to enable case-insensitive view lookups. Perhaps this approach must be rethought.

fyockm commented Oct 22, 2013

From what I can tell, the basic problem is that the "glob" module only supports forward slash on windows, and that breaks the paths. Looks like lib/express/view.js was created to enable case-insensitive view lookups. Perhaps this approach must be rethought.

@SilverPaladin

This comment has been minimized.

Show comment
Hide comment
@SilverPaladin

SilverPaladin Oct 23, 2013

I had the same problem. I ended up installing a vhost of ubuntu and installed sails from there. The problem was not present in ubuntu, but interestingly, after copying the project folder to my windows 7 pc and running sails lift, all was well. It seems to be something that happens during install on windows 7.

I had the same problem. I ended up installing a vhost of ubuntu and installed sails from there. The problem was not present in ubuntu, but interestingly, after copying the project folder to my windows 7 pc and running sails lift, all was well. It seems to be something that happens during install on windows 7.

@michapixel

This comment has been minimized.

Show comment
Hide comment
@michapixel

michapixel Oct 23, 2013

@fijirari - nice, but there's a typo in your script.

here's my fixed version:
'''
var util = require('util'),
path = require('path'),
glob = require('glob'),
ExpressView = require('express/lib/view'),
utils = require('express/lib/utils'),
basename = path.basename,
dirname = path.dirname,
join = path.join,
globPath = function (path) {
//return glob.sync(path, {nocase: true});
return glob.sync(basename (path), {cwd: dirname (path), nocase: true});
},
exists = function (path) {
return globPath(path).length > 0;
};

function SailsView(name, options) {
ExpressView.call(this, name, options);
}

util.inherits(SailsView, ExpressView);

SailsView.prototype.lookup = function(path) {
var ext = this.ext;

// .
if (!utils.isAbsolute(path)) path = join(this.root, path);
//if (exists(path)) return globPath(path)[0];
if (exists (path)) return path;

// /index.
path = join(dirname(path), basename(path, ext), 'index' + ext);
//if (exists(path)) return globPath(path)[0];
if (exists (path)) return path;
};

module.exports = SailsView;
'''
and that replaces
"%AppData%\npm\node_modules\sails\lib\express\view.js"

micha

2013/10/23 SilverPaladin notifications@github.com

I had the same problem. I ended up installing a vhost of ubuntu and
installed sails from there. The problem was not present in ubuntu, but
interestingly, after copying the project folder to my windows 7 pc and
running sails lift, all was well. It seems to be something that happens
during install on windows 7.


Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/983#issuecomment-26874756
.

@fijirari - nice, but there's a typo in your script.

here's my fixed version:
'''
var util = require('util'),
path = require('path'),
glob = require('glob'),
ExpressView = require('express/lib/view'),
utils = require('express/lib/utils'),
basename = path.basename,
dirname = path.dirname,
join = path.join,
globPath = function (path) {
//return glob.sync(path, {nocase: true});
return glob.sync(basename (path), {cwd: dirname (path), nocase: true});
},
exists = function (path) {
return globPath(path).length > 0;
};

function SailsView(name, options) {
ExpressView.call(this, name, options);
}

util.inherits(SailsView, ExpressView);

SailsView.prototype.lookup = function(path) {
var ext = this.ext;

// .
if (!utils.isAbsolute(path)) path = join(this.root, path);
//if (exists(path)) return globPath(path)[0];
if (exists (path)) return path;

// /index.
path = join(dirname(path), basename(path, ext), 'index' + ext);
//if (exists(path)) return globPath(path)[0];
if (exists (path)) return path;
};

module.exports = SailsView;
'''
and that replaces
"%AppData%\npm\node_modules\sails\lib\express\view.js"

micha

2013/10/23 SilverPaladin notifications@github.com

I had the same problem. I ended up installing a vhost of ubuntu and
installed sails from there. The problem was not present in ubuntu, but
interestingly, after copying the project folder to my windows 7 pc and
running sails lift, all was well. It seems to be something that happens
during install on windows 7.


Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/983#issuecomment-26874756
.

@edy

This comment has been minimized.

Show comment
Hide comment
@edy

edy Oct 23, 2013

Contributor

create a pull request please

Contributor

edy commented Oct 23, 2013

create a pull request please

@jpwilliams

This comment has been minimized.

Show comment
Hide comment
@jpwilliams

jpwilliams Oct 23, 2013

Should be worth mentioning that I can make views accessible using the above code change, but referenced CSS files within my assets directory then no longer work.

I guess that's because of this underlying issue with glob?

Should be worth mentioning that I can make views accessible using the above code change, but referenced CSS files within my assets directory then no longer work.

I guess that's because of this underlying issue with glob?

@fyockm

This comment has been minimized.

Show comment
Hide comment
@fyockm

fyockm Oct 23, 2013

@michapixel I think that is exactly what I posted in PR #1012 a couple days ago. It breaks the mocha/Travis test.

fyockm commented Oct 23, 2013

@michapixel I think that is exactly what I posted in PR #1012 a couple days ago. It breaks the mocha/Travis test.

@artjomzab

This comment has been minimized.

Show comment
Hide comment
@artjomzab

artjomzab Oct 24, 2013

Contributor

👍 I have same problem on ubuntu 12.04

Contributor

artjomzab commented Oct 24, 2013

👍 I have same problem on ubuntu 12.04

@artjomzab

This comment has been minimized.

Show comment
Hide comment
@artjomzab

artjomzab Oct 24, 2013

Contributor
Contributor

artjomzab commented Oct 24, 2013

@mikermcneil

This comment has been minimized.

Show comment
Hide comment
@mikermcneil

mikermcneil Oct 25, 2013

Member

Thanks again everyone, we're looking into this now

Member

mikermcneil commented Oct 25, 2013

Thanks again everyone, we're looking into this now

@mikermcneil

This comment has been minimized.

Show comment
Hide comment
@mikermcneil

mikermcneil Oct 25, 2013

Member

Fix seems to be good to go-- thanks @fjirari and @michapixel!

Pushed to associations branch: 74d0cfc
If it's good after a bit more testing, we'll do a hot fix for 0.9.7 asap

Member

mikermcneil commented Oct 25, 2013

Fix seems to be good to go-- thanks @fjirari and @michapixel!

Pushed to associations branch: 74d0cfc
If it's good after a bit more testing, we'll do a hot fix for 0.9.7 asap

@michapixel

This comment has been minimized.

Show comment
Hide comment
@michapixel

michapixel Oct 25, 2013

@mikermcneil did you read what @fyockm wrote about the mocha-test?

@mikermcneil did you read what @fyockm wrote about the mocha-test?

@fyockm

This comment has been minimized.

Show comment
Hide comment
@fyockm

fyockm Oct 25, 2013

@mikermcneil @michapixel see travis log from my pull request #1012

fyockm commented Oct 25, 2013

@mikermcneil @michapixel see travis log from my pull request #1012

@SachinBaniya

This comment has been minimized.

Show comment
Hide comment
@SachinBaniya

SachinBaniya Oct 29, 2013

0 down vote

I have same problem in Window 8. I solved this problem by following given steps.

Open this file in a text editor

C:\Documents and Settings\Application Data\npm\node_modules\sails\lib\express\views.js

in line 10 change as below

//return glob.sync(path, {nocase: true});

return glob.sync(basename (path), {cwd: dirname (path), nocase: true});

in line 28

//if (exists(path)) return globPath(path)[0];

if (exists (path)) return path;

in line 33

//if (exists(path)) return globPath(path)[0];

if (exists (path)) return path;

0 down vote

I have same problem in Window 8. I solved this problem by following given steps.

Open this file in a text editor

C:\Documents and Settings\Application Data\npm\node_modules\sails\lib\express\views.js

in line 10 change as below

//return glob.sync(path, {nocase: true});

return glob.sync(basename (path), {cwd: dirname (path), nocase: true});

in line 28

//if (exists(path)) return globPath(path)[0];

if (exists (path)) return path;

in line 33

//if (exists(path)) return globPath(path)[0];

if (exists (path)) return path;

@darth10

This comment has been minimized.

Show comment
Hide comment
@darth10

darth10 Oct 29, 2013

@SachinBaniya I think that change is done in 74d0cf by @mikermcneil.

If it works on Windows 8, add a comment to that commit indicating so.

darth10 commented Oct 29, 2013

@SachinBaniya I think that change is done in 74d0cf by @mikermcneil.

If it works on Windows 8, add a comment to that commit indicating so.

@yoshuawuyts

This comment has been minimized.

Show comment
Hide comment
@yoshuawuyts

yoshuawuyts Nov 4, 2013

Contributor

This issue is still live, any updates? Sails 9.7 is unusable right now.

Contributor

yoshuawuyts commented Nov 4, 2013

This issue is still live, any updates? Sails 9.7 is unusable right now.

@garthenweb

This comment has been minimized.

Show comment
Hide comment
@garthenweb

garthenweb Nov 6, 2013

@darth10 I tested this changes on Windows 8.1 and left a comment. It is working well for me!

@darth10 I tested this changes on Windows 8.1 and left a comment. It is working well for me!

@Malgin

This comment has been minimized.

Show comment
Hide comment
@Malgin

Malgin Nov 6, 2013

Just in case, I've just installed sails with
$ npm -g install sails
and the problem is still present (I'm under Windows 7)
A workaround, proposed by @fjirari, helped

Malgin commented Nov 6, 2013

Just in case, I've just installed sails with
$ npm -g install sails
and the problem is still present (I'm under Windows 7)
A workaround, proposed by @fjirari, helped

@osswe

This comment has been minimized.

Show comment
Hide comment
@osswe

osswe Nov 6, 2013

Ditto here, just installed (npm -g install sails) about an hour ago and problem is still present.

osswe commented Nov 6, 2013

Ditto here, just installed (npm -g install sails) about an hour ago and problem is still present.

@darth10

This comment has been minimized.

Show comment
Hide comment
@darth10

darth10 Nov 8, 2013

@Malgin @osswe This fix isn't part of the release build yet. It will be released soon IMHO.

darth10 commented Nov 8, 2013

@Malgin @osswe This fix isn't part of the release build yet. It will be released soon IMHO.

@motionharvest

This comment has been minimized.

Show comment
Hide comment
@motionharvest

motionharvest Nov 8, 2013

SachinBaniya's comment worked for me, except my sails directory is in C:\Users\Aaron\AppData\Roaming\npm\node_modules\sails

SachinBaniya's comment worked for me, except my sails directory is in C:\Users\Aaron\AppData\Roaming\npm\node_modules\sails

@jooas

This comment has been minimized.

Show comment
Hide comment
@jooas

jooas Nov 14, 2013

Hi adifah,
I confirm it. I get the following error in Win7 at http://localhost:1337/:
"status": 500,
"errors": [
"Failed to lookup view "home/index""
]

jooas commented Nov 14, 2013

Hi adifah,
I confirm it. I get the following error in Win7 at http://localhost:1337/:
"status": 500,
"errors": [
"Failed to lookup view "home/index""
]

@chmartinez

This comment has been minimized.

Show comment
Hide comment
@chmartinez

chmartinez Nov 14, 2013

I had the same problem on Win 7 (not in Mac).
Solved locally by changing the views.js file with SachinBaniya´s fixes.

I had the same problem on Win 7 (not in Mac).
Solved locally by changing the views.js file with SachinBaniya´s fixes.

@ewaxer

This comment has been minimized.

Show comment
Hide comment
@ewaxer

ewaxer Nov 16, 2013

I installed sails 0.9.7 yesterday. I had the same problem. I applied the fix above but no change. Still have the problem. I am still on Windows XP.

ewaxer commented Nov 16, 2013

I installed sails 0.9.7 yesterday. I had the same problem. I applied the fix above but no change. Still have the problem. I am still on Windows XP.

@michapixel

This comment has been minimized.

Show comment
Hide comment
@michapixel

michapixel Nov 16, 2013

you need to apply the patch in your project folder too.

micha

2013/11/16 Dan Sanford notifications@github.com

I installed sails 9.7 yesterday. I had the same problem. I applied the fix
above but no change. Still have the problem. I am still on Windows XP.


Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/983#issuecomment-28626531
.

you need to apply the patch in your project folder too.

micha

2013/11/16 Dan Sanford notifications@github.com

I installed sails 9.7 yesterday. I had the same problem. I applied the fix
above but no change. Still have the problem. I am still on Windows XP.


Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/983#issuecomment-28626531
.

@ewaxer

This comment has been minimized.

Show comment
Hide comment
@ewaxer

ewaxer Nov 16, 2013

Thanks, I will try that. I went the remove .9.7 and install 9.4. That worked now let me try to go back to 9.7

0.9.7 works once I modified the global and in the project folder too.

ewaxer commented Nov 16, 2013

Thanks, I will try that. I went the remove .9.7 and install 9.4. That worked now let me try to go back to 9.7

0.9.7 works once I modified the global and in the project folder too.

@Lujaw

This comment has been minimized.

Show comment
Hide comment
@Lujaw

Lujaw Nov 18, 2013

@SachinBaniya Thanks it works.. (y)

Lujaw commented Nov 18, 2013

@SachinBaniya Thanks it works.. (y)

@damassi

This comment has been minimized.

Show comment
Hide comment
@damassi

damassi Nov 18, 2013

Thanks @SachinBaniya -- That fixed it.

damassi commented Nov 18, 2013

Thanks @SachinBaniya -- That fixed it.

@facundofarias

This comment has been minimized.

Show comment
Hide comment
@facundofarias

facundofarias Nov 22, 2013

Thanks! Up and running (Win 7 64 bits).

Thanks! Up and running (Win 7 64 bits).

@ZECTBynmo

This comment has been minimized.

Show comment
Hide comment
@ZECTBynmo

ZECTBynmo Nov 24, 2013

It would be awesome if someone could pull this change into the main module

It would be awesome if someone could pull this change into the main module

@yoshuawuyts

This comment has been minimized.

Show comment
Hide comment
@yoshuawuyts

yoshuawuyts Nov 24, 2013

Contributor

Things seem to be moving a bit slow for the last few months.. I mean: this issue is breaking and was reported over 6 weeks ago. I wonder what's up with the core team.

Contributor

yoshuawuyts commented Nov 24, 2013

Things seem to be moving a bit slow for the last few months.. I mean: this issue is breaking and was reported over 6 weeks ago. I wonder what's up with the core team.

@ZECTBynmo

This comment has been minimized.

Show comment
Hide comment
@ZECTBynmo

ZECTBynmo Nov 24, 2013

I agree @yoshuawuyts. Maybe they just don't care about Windows devs

I agree @yoshuawuyts. Maybe they just don't care about Windows devs

@yoshuawuyts

This comment has been minimized.

Show comment
Hide comment
@yoshuawuyts

yoshuawuyts Nov 24, 2013

Contributor

@ZECTBynmo I think they care about everything, but right now are covered so deeply requests that they've smply become stuck. The community doesn't have the proper channels to ventilate their questions, so they just dump everything into GitHub issues, making it a thick forest in which you'll be discouraged to look. If only they communicated their plans, timeline and channels better, things would rapidly improve.

Contributor

yoshuawuyts commented Nov 24, 2013

@ZECTBynmo I think they care about everything, but right now are covered so deeply requests that they've smply become stuck. The community doesn't have the proper channels to ventilate their questions, so they just dump everything into GitHub issues, making it a thick forest in which you'll be discouraged to look. If only they communicated their plans, timeline and channels better, things would rapidly improve.

@SilverPaladin

This comment has been minimized.

Show comment
Hide comment
@SilverPaladin

SilverPaladin Nov 25, 2013

I agree @mike! Their home page on sails.org web page doesn't work with IE,
and neither does sails.

On Sun, Nov 24, 2013 at 9:03 AM, Mike Vegeto notifications@github.comwrote:

I agree @yoshuawuyts https://github.com/yoshuawuyts. Maybe they just
don't care about Windows devs


Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/983#issuecomment-29158538
.


Looking for a parrot?
http://www.birdline.ca

I agree @mike! Their home page on sails.org web page doesn't work with IE,
and neither does sails.

On Sun, Nov 24, 2013 at 9:03 AM, Mike Vegeto notifications@github.comwrote:

I agree @yoshuawuyts https://github.com/yoshuawuyts. Maybe they just
don't care about Windows devs


Reply to this email directly or view it on GitHubhttps://github.com/balderdashy/sails/issues/983#issuecomment-29158538
.


Looking for a parrot?
http://www.birdline.ca

@thinkh

This comment has been minimized.

Show comment
Hide comment
@thinkh

thinkh Nov 26, 2013

The comment from @SachinBaniya worked for me on Windows 7 too.

thinkh commented Nov 26, 2013

The comment from @SachinBaniya worked for me on Windows 7 too.

@shlomifruchter

This comment has been minimized.

Show comment
Hide comment
@shlomifruchter

shlomifruchter Nov 26, 2013

Same error here, fresh install on Windows 7:

{
"status": 500,
"errors": [
"Failed to lookup view "home/index""
]
}

Same error here, fresh install on Windows 7:

{
"status": 500,
"errors": [
"Failed to lookup view "home/index""
]
}

@Volox

This comment has been minimized.

Show comment
Hide comment
@Volox

Volox Nov 27, 2013

+1 but @SachinBaniya comment worked.

Volox commented Nov 27, 2013

+1 but @SachinBaniya comment worked.

@laantorchaweb

This comment has been minimized.

Show comment
Hide comment
@laantorchaweb

laantorchaweb Nov 28, 2013

Wow, this is a major issue, sadly some of us have to work on windows machines. The solution proposed by @SachinBaniya works great.

Wow, this is a major issue, sadly some of us have to work on windows machines. The solution proposed by @SachinBaniya works great.

@CakeSpork

This comment has been minimized.

Show comment
Hide comment
@CakeSpork

CakeSpork Nov 28, 2013

This solution initially worked for me, but upon changing the templating engine to hogan the behavior returned and it broke down again. Easily testable: I only changed the views.js engine to 'hogan'.

This solution initially worked for me, but upon changing the templating engine to hogan the behavior returned and it broke down again. Easily testable: I only changed the views.js engine to 'hogan'.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Nov 28, 2013

This is still an issue in master and the supposed fix in the associations branch is missing/does not fix problem.

ghost commented Nov 28, 2013

This is still an issue in master and the supposed fix in the associations branch is missing/does not fix problem.

@rlopenss

This comment has been minimized.

Show comment
Hide comment
@rlopenss

rlopenss Dec 3, 2013

The comment from @SachinBaniya fixed problem on Windows 8. Sails v0.9.7

rlopenss commented Dec 3, 2013

The comment from @SachinBaniya fixed problem on Windows 8. Sails v0.9.7

@honeyd

This comment has been minimized.

Show comment
Hide comment
@honeyd

honeyd Dec 4, 2013

@SachinBaniya's comment fixed the problem until I tried using a different templating engine, specifically Jade. Win7, Sails v0.9.7.

honeyd commented Dec 4, 2013

@SachinBaniya's comment fixed the problem until I tried using a different templating engine, specifically Jade. Win7, Sails v0.9.7.

@mosampaio

This comment has been minimized.

Show comment
Hide comment
@mosampaio

mosampaio Dec 5, 2013

I'm getting the same error using the c9.io enviroment. I'm using this version: v0.9.7

I'm getting the same error using the c9.io enviroment. I'm using this version: v0.9.7

@yogieputra8

This comment has been minimized.

Show comment
Hide comment
@yogieputra8

yogieputra8 Dec 6, 2013

@shlomifruchter Remove your current version of sails than install the version 0.9.4.

@shlomifruchter Remove your current version of sails than install the version 0.9.4.

@powpowshen

This comment has been minimized.

Show comment
Hide comment
@powpowshen

powpowshen Dec 6, 2013

Just test the comment from yogleputra8, and it works. Thx.

Just test the comment from yogleputra8, and it works. Thx.

@TengfeiQi

This comment has been minimized.

Show comment
Hide comment
@TengfeiQi

TengfeiQi Dec 10, 2013

me too, windows7 sails v0.9.7

me too, windows7 sails v0.9.7

@igncp

This comment has been minimized.

Show comment
Hide comment
@igncp

igncp Dec 12, 2013

Contributor

Same here, on Windows 8

Contributor

igncp commented Dec 12, 2013

Same here, on Windows 8

@fyockm

This comment has been minimized.

Show comment
Hide comment
@fyockm

fyockm Dec 13, 2013

@mikermcneil is "99% sure this is fixed on v0.10 branch" but doesn't have a Windows box set up to test. Could one of the many commenters try the new branch and report back?

fyockm commented Dec 13, 2013

@mikermcneil is "99% sure this is fixed on v0.10 branch" but doesn't have a Windows box set up to test. Could one of the many commenters try the new branch and report back?

@ZECTBynmo

This comment has been minimized.

Show comment
Hide comment
@ZECTBynmo

ZECTBynmo Dec 14, 2013

I tried it briefly, and it appears that creating new projects is broken in v0.10. Whenever I type "sails new testProject" it says it created a new app in the appropriate directory, but nothing actually happens. There are no files/folders generated, and no error messages.

I tried it briefly, and it appears that creating new projects is broken in v0.10. Whenever I type "sails new testProject" it says it created a new app in the appropriate directory, but nothing actually happens. There are no files/folders generated, and no error messages.

devel-pa added a commit to devel-pa/sails that referenced this issue Dec 15, 2013

mvc modularity
(also fixed view issue on windows #983)
@czapeczek

This comment has been minimized.

Show comment
Hide comment
@czapeczek

czapeczek Dec 15, 2013

I pretty much wanted to check Sails out, but above happens. I tried to install 0.9.4, but still the same. Anyone had the same issue?
I did
npm uninstall sails
npm install -g sails@0.9.4

when i type npm list, I get:
npm ERR! missing: sails@0.9.7, required by test@0.0.0 after creating a new project

I pretty much wanted to check Sails out, but above happens. I tried to install 0.9.4, but still the same. Anyone had the same issue?
I did
npm uninstall sails
npm install -g sails@0.9.4

when i type npm list, I get:
npm ERR! missing: sails@0.9.7, required by test@0.0.0 after creating a new project

@mikermcneil

This comment has been minimized.

Show comment
Hide comment
@mikermcneil

mikermcneil Dec 15, 2013

Member

@ZECTBynmo haven't finished sails new refactor in 0.10, but I'm pretty close.

@czapeczek maybe try sudo npm uninstall -g sails && sudo npm install -g sails@0.9.4? (if you're on windows, you can drop the sudo) Also, you'll want ot make sure an remove the local dep. if you're trying to lift an existing app, i.e. rm -rf node_modules/sails

Member

mikermcneil commented Dec 15, 2013

@ZECTBynmo haven't finished sails new refactor in 0.10, but I'm pretty close.

@czapeczek maybe try sudo npm uninstall -g sails && sudo npm install -g sails@0.9.4? (if you're on windows, you can drop the sudo) Also, you'll want ot make sure an remove the local dep. if you're trying to lift an existing app, i.e. rm -rf node_modules/sails

@devel-pa

This comment has been minimized.

Show comment
Hide comment
@devel-pa

devel-pa Dec 16, 2013

Contributor

my solution was to change in lib / express / view.js, line 10 like:

   return glob.sync(path, {nocase: process.platform !== 'win32'});
Contributor

devel-pa commented Dec 16, 2013

my solution was to change in lib / express / view.js, line 10 like:

   return glob.sync(path, {nocase: process.platform !== 'win32'});
@mikermcneil

This comment has been minimized.

Show comment
Hide comment
@mikermcneil

mikermcneil Dec 16, 2013

Member

Will be included in hotfix on master:
#1012
031ebe1

Member

mikermcneil commented Dec 16, 2013

Will be included in hotfix on master:
#1012
031ebe1

@mikermcneil

This comment has been minimized.

Show comment
Hide comment
@mikermcneil

mikermcneil Dec 16, 2013

Member

npm install sails@beta will grab the soon-to-be-released v0.9.8 with a fix for this. Thanks for your help/patience, guys!

Member

mikermcneil commented Dec 16, 2013

npm install sails@beta will grab the soon-to-be-released v0.9.8 with a fix for this. Thanks for your help/patience, guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment