鍍金池/ 問(wèn)答/網(wǎng)絡(luò)安全  HTML/ thinkjs 按照文檔配置后報(bào)錯(cuò)

thinkjs 按照文檔配置后報(bào)錯(cuò)

按照文檔配置后提示錯(cuò)誤找不到模塊think-websocket
extend.js
const view = require('think-view');
const model = require('think-model');
const cache = require('think-cache');
const session = require('think-session');
const websocket = require('think-websocket');

module.exports = [
view, // make application support view
model(think.app),
cache,
sessionwebsocket(think.app),
];

config.js
module.exports = {
stickyCluster: true,
// ...
};
報(bào)錯(cuò) Error: Cannot find module 'think-websocket'

回答
編輯回答
遲月

找不到模塊安裝啊,npm i think-websocket

2018年1月25日 02:20