Reputation: 2163
I installed node and npm, and then I isntalled express gobally and locally. I am following this tutorial.
But when I type the command express, or express -c stylus, it asks Destination is not empty? and then it says aborting.
The package is created, though.
abhishek@TiltedLines:~/blog$ express mytestapp
create : mytestapp
create : mytestapp/package.json
create : mytestapp/app.js
create : mytestapp/public
create : mytestapp/public/images
create : mytestapp/public/stylesheets
create : mytestapp/public/stylesheets/style.css
create : mytestapp/routes
create : mytestapp/routes/index.js
create : mytestapp/views
create : mytestapp/views/layout.jade
create : mytestapp/views/index.jade
create : mytestapp/public/javascripts
dont forget to install dependencies:
$ cd mytestapp && npm install
abhishek@TiltedLines:~/blog$ express -c stylus
destination is not empty, continue?
aborting
abhishek@TiltedLines:~/blog$ express
destination is not empty, continue?
aborting
abhishek@TiltedLines:~/blog$ express
destination is not empty, continue?
aborting
abhishek@TiltedLines:~/blog$ cd mytestapp
abhishek@TiltedLines:~/blog/mytestapp$ npm install
npm WARN engine [email protected]: wanted: {"node":">= 0.4.1 < 0.7.0"} (current: {"node":"0.12.2","npm":"2.7.4"})
[email protected] node_modules/express
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected] ([email protected])
[email protected] node_modules/jade
├── [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], [email protected])
abhishek@TiltedLines:~/blog/mytestapp$ express -c stylus
destination is not empty, continue?
aborting
abhishek@TiltedLines:~/blog/mytestapp$ express
destination is not empty, continue?
Upvotes: 0
Views: 138
Reputation: 1943
You want to run the options as part of the single express generator that you run and not as individual calls. From your sample output you would have an app generated under mytestapp
and then the css styling created at the level above that as you ran the express -c stylus
command from outside of the generated mytestapp
directory.
Try running the following in an empty directory:
express -c stylus mytestapp
This will create your app with the stylus css engine.
Upvotes: 1