无法解决“反应”

时间:2019-05-28 09:57:06

标签: reactjs module

您好,我对REACT.Js还是陌生的,我正处于将网站上线的初步阶段。

但是在我的npm start命令之后,我在本地主机上看到了错误消息,并带有以下说明:

../node_modules/create-react-context/lib/index.js
Module not found: Can't resolve 'react' in '/Users/frankthijssen/node_modules/create-react-context/lib'

如何解决这个问题?

../node_modules/create-react-context/lib/index.js
Module not found: Can't resolve 'react' in '/Users/frankthijssen/node_modules/create-react-context/lib'
  

错误:fsevents不可用(该监视程序只能在达尔文上使用)       在新的FSEventsWatcher(/Users/frankthijssen/reign/node_modules/sane/src/fsevents_watcher.js:41:11)       在createWatcher(/Users/frankthijssen/reign/node_modules/jest-haste-map/build/index.js:780:23)       在Array.map()       在HasteMap._watch(/Users/frankthijssen/reign/node_modules/jest-haste-map/build/index.js:936:44)       在/Users/frankthijssen/reign/node_modules/jest-haste-map/build/index.js:355:23       在processTicksAndRejections(内部/进程/task_queues.js:89:5)   npm ERR!测试失败。详情请见上文

0 个答案:

没有答案