2015-04-30 2 views
1

Я следую основному руководству по установке для среднего стека в OS X. MongoDB запущен, и все зависимости, как полагают, установлены.«init init» не работает при создании пользователя администратора

Во время инициализации моего первого приложения, то скрипт не при запросе пароля пользователя администратора (он не до того мне позволено ввода ничего, как мой пароль администратора):

$ mean init myApp 

? What would you name your mean app? myApp 
? The Mean project is currently in developer preview. To help improve the - 
    quality of this product, we collect anonymized data on how the mean-cli is used - 
    You may choose to opt out of this collection now (by choosing 'N' at the below prompt) 
    or at any time in the future by running the following command: 

    mean disable user-reporting 

    Do you want to help us improve the mean network (Y/n)? Y 
? Please provide your email so we can create your first admin user: [email protected] 
? Please provide your username so we can create your first admin user: admin 
Cloning branch: master into destination folder: myApp 
git clone --depth 1 -bmaster https://github.com/linnovate/mean.git "myApp" 
Cloning into 'myApp'... 


############################################################## 
# 
# !!! MONGOOSE WARNING !!! 
# 
# This is an UNSTABLE release of Mongoose. 
# Unstable releases are available for preview/testing only. 
# DO NOT run this in production. 
# 
############################################################## 

    DB connection successful! 

Please provide password so we can create your first admin user 
prompt: password: /usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/base.js:246 
     throw message;  
      ^
TypeError: Cannot read property 'length' of undefined 
    at processResults (/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1581:31) 
    at /usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1619:20 
    at /usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1157:7 
    at /usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/db.js:1890:9 
    at Server.Base._callHandler (/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/base.js:448:41) 
    at /usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:481:18 
    at MongoReply.parseBody (/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5) 
    at null.<anonymous> (/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:439:20) 
    at emit (events.js:107:17) 
    at null.<anonymous> (/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:201:13) 

Я могу создавать пользователей вручную в полученной папке приложения. Но результирующее приложение кажется неполным, и я не могу его запустить.

$ mean user [email protected] --addRole admin; 
    Adding role `admin` to user `[email protected]` 

############################################################## 
# 
# !!! MONGOOSE WARNING !!! 
# 
# This is an UNSTABLE release of Mongoose. 
# Unstable releases are available for preview/testing only. 
# DO NOT run this in production. 
# 
############################################################## 

    DB connection successful! 

successfully updated 
+0

Я столкнулся с точно такой же проблемой. mark – sailing

ответ

Смежные вопросы