This paper will record all kinds of pits encountered in the learning process of react native ...
In the learning process, the operation of the official demo, is essential to learn means, so we are interested in the GitHub from the react Native, the results in the process of running the program only to find that the program is also a bug caused to see the effect can not see ...
module.js:338
throw err;
^
error:cannot Find module ' escape-string-regexp ' at
function.module._resolvefilename (module.js:336:15) At
Function.module._load (module.js:278:25) at
Module.require (module.js:365:17) at
require (module.js : 384:17) at
object.<anonymous> (/users/xxxx/dev/githublibrary/react-native/node_modules/chalk/index.js : 2:26) at the
Module._compile (module.js:460:26) at
object.module._extensions. JS (module.js:478:10) at
module.load (module.js:355:32) at
function.module._load (module.js:310:12)
At Module.require (module.js:365:17)
Encounter this situation, do not worry, open the terminal, CD to/users/xxxx/dev/githublibrary/react-native directory, run npm install on OK pull.
As for the cause of the error, the project associated with the library is the wood to have to manually download ...