You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calls like exec(sailsBin + ' new ' + appName, ...) where sailsBin is './bin/sails.js' fail on Windows due to the use of the forward slash, as well as the inconsistent association of .js files with the Node executable (the shebang a the top of sails.js obviously doesn't work on Windows).
Probably best to replace exec with a fork call, since it uses the Node binary implicitly. Then we don't have to worry about the .js association. The path problem can be fixed by just using path.sep or path.resolve().
The text was updated successfully, but these errors were encountered:
Originally from #3466 (comment)
Calls like
exec(sailsBin + ' new ' + appName, ...)
wheresailsBin
is'./bin/sails.js'
fail on Windows due to the use of the forward slash, as well as the inconsistent association of.js
files with the Node executable (the shebang a the top ofsails.js
obviously doesn't work on Windows).Probably best to replace
exec
with afork
call, since it uses the Node binary implicitly. Then we don't have to worry about the.js
association. The path problem can be fixed by just usingpath.sep
orpath.resolve()
.The text was updated successfully, but these errors were encountered: