A pit encountered when installing Webpack under Windows 7
Install webPack on create-react-app myProject. Install webpack on create-react-app myProject. Install webpack on create-react-app myProject. Original: node v6.9.2 NPM :3.3.7 Updated: Node v6.11.3 NPM v5.4.2
NPM install webpack-g, ugliliy-js postinstall… (NPM install webpack -g) (NPM install webpack -g) (v6.11.3) But NPM checked the version (NPM -V) and it was still 3.3.7. NPM install webpack-g (NPM I ugliliy-js-g); Windows is a big hole, if you can not install, try to install a few times, not always good, wait a few times after the installation is not successful, and then try to find another way. Ok, WebPack installed successfully v3.6.0. Happy to continue create-React-app myProject. Ah… Let out a big sigh. There’s something wrong with NM. The same mistake happened after a whole afternoon in the office. Baidu search rarely have similar errors, the official website to determine, did not find the corresponding method, ok. Go home to continue to toss, since the Internet is rarely clearly their own environmental problems, or to consider the version of the problem. When I went home, I found it was successfully installed on my computer. Later, I checked the version of NPM. It turned out to be 3.10. Well, the next day the company will upgrade the version of NPM (NPM I NPM -g), check version V5.4.2. Create-react-app myproject = create-react-app myproject = create-react-app myproject
Summary: Windows development, really pit a lot. Node-sass was not installed before, and it took a long time to get it done. Therefore, if the current front-end development environment is developed in Windows, if you encounter installation problems, it is recommended to press several times, if still not successful to find the corresponding solution. Create-react-app myproject runs successfully. For node and NPM version, refer to the updated version above. Many other versions should also work, if not, please upgrade the version. Probably because of the version.