react-admin icon indicating copy to clipboard operation
react-admin copied to clipboard

npm install 安装依赖包时。报错

Open mymhj opened this issue 7 years ago • 5 comments

[email protected] install E:\exmple\react-antd-admin\react-antd-admin\node_modules\node-zopfli node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(403): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.2-node-v57-win32-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v57 ABI, unknown) (falling back to source compile with node-gyp)

mymhj avatar Mar 21 '18 07:03 mymhj

@mymhj 看不出来是哪里出错了……我找了台新电脑,试了一下,也没有这种问题,试一试删掉 node_modules 文件夹,然后 sudo cnpm install 一下试试?

mqyqingfeng avatar Mar 28 '18 07:03 mqyqingfeng

有时候用npm install 是不行,我用了yarn install 安装启动,可以解决npm安装启动不了的问题,虽然两个都是包管理器,但不知道npm为啥安装启动不了

kissbugs avatar Apr 08 '18 12:04 kissbugs

我这边也是npm install, 但是无法启动,用cnpm安装就好使,这是为什么呢?

answer518 avatar Apr 24 '18 02:04 answer518

我觉得可能是 npm install 的速度慢,导致某些文件没有装上……

mqyqingfeng avatar Apr 24 '18 12:04 mqyqingfeng

cnpm和npm都不可以,建议使用yarn,版本确实有点老了

ljh15191849190 avatar Dec 05 '18 08:12 ljh15191849190