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。不,我没试过。