yarn Instructions

yarn role and npm exactly the same, but from the experience of speaking, yarn superior; moreover, RN can only use yarn packages installed, do not use cnpm or npm;

  1. yarn init -yIt represents a fast initialization packet management configuration file, if the project does not initialize on-pack, there will be attached to the issue under the user directory;

  2. Run-pack yarn add jquery, or -S --save not need to specify where, because yarn is installed by default dependencies to the next node;

  3. Running yarn add webpack -D, -D here, it means, the corresponding packet, is mounted to the lower devDependencies node;

  4. Run yarn remove 包名can uninstall package, at the same time, the package will be automatically recorded information package.json deleted;

  5. Run yarncan be installed in all the records in package.json package;

Guess you like

Origin blog.csdn.net/weixin_42442123/article/details/88319328