Sails: Can't create sails project in existing directory

Created on 6 Apr 2013  Â·  5Comments  Â·  Source: balderdashy/sails

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

Most helpful comment

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

All 5 comments

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.

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 [email protected] 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.

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.

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

Again, no big deal :)

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Alirezamohammadi picture Alirezamohammadi  Â·  4Comments

anissen picture anissen  Â·  3Comments

MelwinKfr picture MelwinKfr  Â·  4Comments

randallmeeker picture randallmeeker  Â·  4Comments

visitsb picture visitsb  Â·  4Comments