Mozi icon indicating copy to clipboard operation
Mozi copied to clipboard

你好mac下npm install项目报错

Open JserJser opened this issue 5 years ago • 4 comments

npm ERR! code ERR_STREAM_DESTROYED npm ERR! Cannot call write after a stream was destroyed npm ERR! code ERR_STREAM_DESTROYED npm ERR! Cannot call write after a stream was destroyed npm ERR! code ERR_STREAM_DESTROYED npm ERR! Cannot call write after a stream was destroyed npm ERR! code ERR_STREAM_DESTROYED npm ERR! Cannot call write after a stream was destroyed npm ERR! code ERR_STREAM_DESTROYED npm ERR! Cannot call write after a stream was destroyed npm ERR! code ERR_STREAM_DESTROYED npm ERR! Cannot call write after a stream was destroyed Unhandled rejection Error: ENOSPC: no space left on device, write

npm ERR! code ERR_STREAM_DESTROYED npm ERR! Cannot call write after a stream was destroyed Unhandled rejection Error: ENOSPC: no space left on device, write

Unhandled rejection Error: ENOSPC: no space left on device, write

npm WARN registry Unexpected warning for https://registry.npm.taobao.org/: Miscellaneous Warning ENOSPC: ENOSPC: no space left on device, write npm WARN registry Using stale package data from https://registry.npm.taobao.org/ due to a request error during revalidation. Unhandled rejection Error: ENOSPC: no space left on device, write

Unhandled rejection Error: ENOSPC: no space left on device, write

Unhandled rejection Error: ENOSPC: no space left on device, write

npm WARN deprecated [email protected]: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0

JserJser avatar May 17 '19 03:05 JserJser

项目 没问题 我在我的电脑上运行成功了, macpro 10.14 Xcode10.2 , 按流程 用 yarn , 只是需要改几个路径 就 OK 了

loss99 avatar May 21 '19 08:05 loss99

你可以加入淘宝镜像试试; yarn config set registry https://registry.npm.taobao.org --global yarn config set disturl https://npm.taobao.org/dist --global

duheng avatar May 24 '19 05:05 duheng

如果有部分电脑提示路径有问题,就把报错的路径改成相对路径;因为我配置了alias,可能有的电脑支持不太好;可以搜babel-plugin-module-resolver相关的文章了解一下具体用法。

duheng avatar May 24 '19 05:05 duheng

我也遇到了这样的问题,多试几下,应该是网络问题。 除此之外,react-native-gesture-handler, react-native-vector-icons,jpush-react-native,也遇到了麻烦,我修改了版本 "react-native-gesture-handler": "1.3.0", "react-native-vector-icons": "^6.5.0", "jcore-react-native": "1.3.3", "jpush-react-native": "2.5.3", 修改了routers/app utils 的路径,就能运行了

webxiaohe avatar Nov 19 '19 07:11 webxiaohe