加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

react-redux-universal-hot-example错误

发布时间:2020-12-15 05:14:44 所属栏目:百科 来源:网络整理
导读:问题: no suitable image found ERROR in dlopen(/Users/xxx/web/react-redux-universal-hot-example/node_modules/node-sass/vendor/darwin-x64-48/binding.node,1): no suitable image found. Did find: [0] /Users/xxx/web/react-redux-universal-hot-ex


问题: no suitable image found

ERROR in dlopen(/Users/xxx/web/react-redux-universal-hot-example/node_modules/node-sass/vendor/darwin-x64-48/binding.node,1): no suitable image found. Did find:
[0] /Users/xxx/web/react-redux-universal-hot-example/node_modules/node-sass/vendor/darwin-x64-48/binding.node: truncated mach-o error: segment __TEXT extends to 1212416 which is past end of file 69180


解决办法:https://github.com/sass/node-sass/issues/1387

npm rebuild node-sass
查看:node -p "console.log(require('node-sass').info)"



问题:


仔细查看npm install环节 有以下输出:

Start downloading binary at https://github.com/sass/node-sass/releases/download/v3.10.0/darwin-x64-48_binding.node

Saving to /var/folders/2r/h3svtmqn0rv5jpj5kzc9z8cw0000gn/T/phantomjs/phantomjs-2.1.1-macosx.zip


若npm install改为 cnpm install


Considering PhantomJS found at /Users/grantgu/code/web/react-redux-universal-hot-example/node_modules/.bin/phantomjs
Looks like an `npm install -g`
Could not link global install,skipping...
Downloading https://npm.taobao.org/mirrors/phantomjs/phantomjs-2.1.1-macosx.zip
Saving to /var/folders/2r/h3svtmqn0rv5jpj5kzc9z8cw0000gn/T/phantomjs/phantomjs-2.1.1-macosx.zip
Receiving...


####################


其余变动:

1.更改了node版本号:6.2.0

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读