Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Pomelo+mongodb configuration

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

If you report a bunch of errors at this time of npm install pomelo installation, you can.

Npm config set msvs_version 2012-global

Pomelo installation is simple

Npm remove crc

Npm install crc@0.3.0-gd

Npm remove express

Npm install express@3.4.0-gd

Npm install mongodb (npm cache clean and try again if installation fails)

If the version is too high, it is easy to cause problems.

Add "mongodb" to the server's package.json: "0.3.0"

{

"name": "chatofpomelo-websocket"

"version": "0.0.1"

"private": false

"dependencies": {

"pomelo": "~ 1.0.2"

"crc": "0.3.0"

"mongodb": "1.4.7"

}

}

Mongodb is installed, go to bin and write a bat mongod.exe-- dbpath=F:\ cocos2d-js-v3\ MongoDB\ data

Run it directly and you can start it.

If you enter bin and run mongo.exe directly, you can directly enter the command line operation.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report