2015-10-01 73 views
-1

我需要爲我的登錄&註冊功能設置電子郵件確認/驗證。我在github上找到了Activator,它假設它是處理用戶激活和密碼重置的簡單方法,用於您的nodejs應用程序(https://github.com/deitch/activator)。我已閱讀文檔,但無法獲得簡單的example.js。我不明白這個錯誤..任何幫助將不勝感激。使用JavaScript和激活器的電子郵件確認

throw new Error('Most middleware (like ' + name + ') is no longer bundle 
      ^
Error: Most middleware (like bodyParser) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware. 
    at Function.Object.defineProperty.get (/Users/user/Desktop/activator-master/node_modules/express/lib/express.js:99:13) 
    at Object.<anonymous> (/Users/user/Desktop/activator-master/example.js:139:16) 
    at Module._compile (module.js:460:26) 
    at Object.Module._extensions..js (module.js:478:10) 
    at Module.load (module.js:355:32) 
    at Function.Module._load (module.js:310:12) 
    at Function.Module.runMain (module.js:501:10) 
    at startup (node.js:129:16) 
    at node.js:814:3 
1 Oct 12:16:29 - [nodemon] app crashed - waiting for file changes before starting... 
+0

你讀過的錯誤消息? 「大多數中間件(如bodyParser)不再與Express捆綁在一起,必須單獨安裝,請參閱https://github.com/senchalabs/connect#middleware。」 – Jan

+0

是的,我看着這個知識庫..不知道它有什麼用處? – Nodedeveloper101

+0

恩,你說完了嗎? – Jan

回答

0

你嘗試:

npm install body-parser 
+0

是的我已經安裝了所有的npm模塊 – Nodedeveloper101

+0

您是否嘗試添加'身體分析器'的特定要求? – Meir

+0

是的,我做了同樣的錯誤 – Nodedeveloper101