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

Can't create sails project in existing directory #297

Closed
ryanflorence opened this issue Apr 6, 2013 · 5 comments
Closed

Can't create sails project in existing directory #297

ryanflorence opened this issue Apr 6, 2013 · 5 comments

Comments

@ryanflorence
Copy link

mkdir app
cd app
npm install #sails in dependencies key
sails new .
error: A file or directory already exists at: ./.
@dcbartlett
Copy link
Contributor

This is not the way you should try to use sails. Do the following.

sails new app
cd app
npm install

I will look into supporting the before mentioned, but for now, please follow the practice mentioned above by me.

@ryanflorence
Copy link
Author

npm install -g sails

your commands

npm uninstall -g sails

Is kinda dumb, but no biggie.

Sent from my iPhone

On Apr 6, 2013, at 11:28 AM, Dennis Bartlett notifications@github.com wrote:

This is not the way you should try to use sails. Do the following.

sails new app
cd app
npm install

Reply to this email directly or view it on GitHub.

@dcbartlett
Copy link
Contributor

the -g flag is for global install

If you plan to use the sails CLI, you will need to keep it installed globally. If you are just going to launch it with node, then i spose you don't need to.

@ryanflorence
Copy link
Author

I have few global installs. Just add node_modules/.bin to your path and you don't ever need them.

Again, no big deal :)

@mikermcneil mikermcneil reopened this Apr 7, 2013
@mikermcneil
Copy link
Member

@rpflorence I'd like to see support for the behavior you're expected

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

No branches or pull requests

3 participants