Open LittleAprilFool opened 3 years ago
npm install @fortawesome/fontawesome-free
, following instructions hereIf students are using Fontawesome, they can just use CDN to reference it, no need to bundle it with webpack
A common issue that students located in China would encounter: https://registry.npmjs.org/ is blocked by the GFW — even if they turn on the VPN, npm install wouldn’t install through the VPN and they will get npm install Error: rollbackFailedOptional.
Use a mirror site of npmjs hosted in China. For example, run npm config set registry http://registry.npm.taobao.org
1. Snapsvg
Issue
npm install snapsvg
import Snap from "snapsvg"
(the instructions on npm site are out-dated)Uncaught TypeError: Cannot read property 'on' of undefined
Related Discussions
Solution
snapsvg-cjs