gpt4 book ai didi

react-native - 找不到模块 'asap/raw'

转载 作者:行者123 更新时间:2023-12-03 06:44:48 25 4
gpt4 key购买 nike

我已经开始了一个新的react-native项目,之后我安装了react-native-maps我无法运行react-native run-android因为终端显示以下错误:

module.js:550
throw err;
^

Error: Cannot find module 'asap/raw'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/valentino/Scrivania/lolo/node_modules/promise/lib/core.js:3:12)
at Module._compile (module.js:653:30)
at Module._compile (/home/valentino/Scrivania/lolo/node_modules/pirates/lib/index.js:83:24)
at Module._extensions..js (module.js:664:10)
at Object.newLoader [as .js] (/home/valentino/Scrivania/lolo/node_modules/pirates/lib/index.js:88:7)
at Module.load (module.js:566:32)

如果我安装react-native-maps,则会显示该消息,这是我构建项目的命令:

react-native init appName
cd appName
npm install react-native-maps --save
react-native run-android

如何解决这个问题?

我做错了什么吗?

感谢您的帮助。

最佳答案

在项目目录中运行 npm install 通常可以正常工作。

(它的作用是,当您安装该软件包时可能已经下载了 installs all the dependencies in the local node_modules folder。)

关于react-native - 找不到模块 'asap/raw',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53031689/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com