Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/232.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 为什么我会得到';模块未安装';错误?_Javascript_Android_Ios_Reactjs_React Native - Fatal编程技术网

Javascript 为什么我会得到';模块未安装';错误?

Javascript 为什么我会得到';模块未安装';错误?,javascript,android,ios,reactjs,react-native,Javascript,Android,Ios,Reactjs,React Native,我想使用其他组件,但是没有任何地方,但是react和react native带下划线,这会引发一个错误,导致我不使用组件 错误是: Module is not installed Checks whether the module in the "require()" call or import statement exists, whether it is is listed in package.json dependencies, and whether it is locally

我想使用其他组件,但是没有任何地方,但是
react
react native
带下划线,这会引发一个错误,导致我不使用组件

错误是:

Module is not installed


Checks whether the module in the "require()" call or import statement exists, whether it is is listed in package.json dependencies, and whether it is locally installed.
Suggests installing the module and/or including it into package.json.
For require() calls, works only in files in the scope of "Node.js Core" JavaScript library.
我试图运行
npm安装模块--save
,但没有成功


您使用的是什么IDE?您是否尝试删除node_模块并重新安装npm?您能否提供更多错误信息?它说什么模块未安装?请将代码复制为文本而不是图像。另外,什么是
模块
?您列出的命令将安装,它不是React本机组件。你想在这里用什么?@MichaelCheng我想在这里用这个@Raymond我在用Webstorm。不,我没试过。