美文网首页react-nativeReact Native
react-native运行时报错setup_env.sh

react-native运行时报错setup_env.sh

作者: 复古先生 | 来源:发表于2017-07-28 18:04 被阅读0次

    child_process.js:506throwerr;^Error:spawnSync/Users/UserName/Desktop/Path/node_modules/react-native/local-cli/setup_env.sh EACCES

    at exports._errnoException(util.js:1022:11)at spawnSync(child_process.js:461:20)atObject.execFileSync(child_process.js:498:13)atObject.run(/Users/UserName/Desktop/Path/node_modules/react-native/local-cli/cliEntry.js:156:16)atObject.(/usr/local/lib/node_modules/react-native-cli/index.js:117:7)atModule._compile(module.js:570:32)atObject.Module._extensions..js(module.js:579:10)atModule.load(module.js:487:32)at tryModuleLoad(module.js:446:12)atFunction.Module._load(module.js:438:3)

    I am aware that it only tries to set the ulimit (open file limit) to 2048 which is permiss

    在根目录下运行这句(mac系统)

    chmod -R 777 node_modules

    相关文章

      网友评论

        本文标题:react-native运行时报错setup_env.sh

        本文链接:https://www.haomeiwen.com/subject/ohyflxtx.html