The 1.1.2 version of Webim has changed greatly from UI to overall code structure, developing and packaging from a code structure using node. js, and ultimately packaged output projects that do not depend on the node. JS environment to run, thanks to the webpack packaging implementation.
Here are the detailed network introduction: http://www.imgeek.org/article/825308179
: https://github.com/easemob/web-im/releases/tag/v1.1.2
Let's start by explaining the problems you encounter when building the node. JS Environment:
Premise: the node. JS environment must be successfully built to perform the following steps, which can be found in this article:http://xiaoyaojones.blog.163.com/blog/static/28370125201351501113581/
1. If you download v4.5.0 LTS on https://nodejs.org/en/website and then perform the Webpack command after the NPM Install command, you will be prompted with the following error:
Workaround: Use a 5.10.1 version of NPM Install->webpack, and then you can package it successfully.
2, the above step, a large probability will appear webpack is not a system command, if there is such a problem, a Webpack package is not the overall installation, Webim the use of the local installation, only the project to refer to the local module is very convenient, there will not be too many inexplicable strange conflict;
can be resolved in the following ways:
① installs the Webpack as a global module with the NPM install-g command, and then uses the Webpack command.
② since to local, that is directly local use, after analysis, call Webpack command is actually a CMD batch, view batch processing will find that is node + "xxx.js" form exists, then we can make this flexible, command line into the directory of Webim run the following command:
node./node_modules/webpack/bin\webpack.js-config webpack.config.js
③ also has a way of doing this by Package.json, adding "Start": "Webpack" On the Scripts node, and then running NPM start on the command line to achieve the same package.
Note: The command line above runs must be run as an administrator
Outside: The new version of the Webim need to use more knowledge, you can follow the order of the breakthrough: Node.js->npm->react->webpack
Ring Letter webim1.1.2 version under Windows NPM Environment Setup Error resolution