Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

merge

  • Loading branch information...
commit 77e8b2fcc117c19f39385c0b711a6a01aa077cfd 2 parents 972a44b + b14d963
@contra contra authored
Showing with 32 additions and 3 deletions.
  1. +9 −3 lib/app.js
  2. +22 −0 npm-debug.log
  3. +1 −0  package.json
View
12 lib/app.js
@@ -22,6 +22,7 @@ module.exports = {
setup: function(args) {
if (!args.length) {
log.error('appname required');
+ return;
}
config.writeApp(args[0]);
},
@@ -186,7 +187,8 @@ module.exports = {
create: function(args) {
config.check();
if (!args.length) {
- log.error('give this app a name');
+ log.error('appname required');
+ return;
}
var name = args[0].toLowerCase();
var start = args[1] || 'server.js';
@@ -207,8 +209,12 @@ module.exports = {
},
init: function(args) {
config.check();
- if (args.length) {
- var appname = folder = args[0].toLowerCase();
+ if (!args.length) {
+ log.error('appname required');
+ return;
+ } else {
+ var appname = args[0].toLowerCase();
+ var folder = appname;
if (args[1]) {
folder = args[1].toLowerCase();
}
View
22 npm-debug.log
@@ -0,0 +1,22 @@
+info it worked if it ends with ok
+verbose cli [ 'node', '/home/eric/local/node/bin/npm', 'publish' ]
+info using npm@1.0.17
+info using node@v0.4.10-pre
+verbose config file /home/eric/.npmrc
+verbose config file /home/eric/local/node/etc/npmrc
+verbose publish [ '.' ]
+ERR! Could not install: .
+ERR! Failed to parse json
+ERR! Unexpected token ]
+ERR! File: package.json
+ERR! JSON.parse Failed to parse package.json data.
+ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
+ERR! JSON.parse This is not a bug in npm.
+ERR! JSON.parse Tell the package author to fix their package.json file.
+ERR!
+ERR! System Linux 2.6.38-11-generic
+ERR! command "node" "/home/eric/local/node/bin/npm" "publish"
+ERR! cwd /home/eric/Desktop/Projects/nodester-cli
+ERR! node -v v0.4.10-pre
+ERR! npm -v 1.0.17
+verbose exit [ 1, true ]
View
1  package.json
@@ -9,6 +9,7 @@
"Dav Glass <davglass@gmail.com> @davglass",
"Chris Matthieu <chris@matthieu.us>",
"Abraham Williams <4braham@gmail.com>",
+ "Contra <contra@australia.edu>",
"Marcos Oliveira <marcosvm@gmail.com"
],
"preferGlobal" : "true",
Please sign in to comment.
Something went wrong with that request. Please try again.