threejs-login-view icon indicating copy to clipboard operation
threejs-login-view copied to clipboard

您好,我的node版本12.13.0和16.4.1装依赖都报错,不知道您的node版本是多少

Open yuechongkihi opened this issue 4 years ago • 5 comments

yuechongkihi avatar Oct 21 '21 01:10 yuechongkihi

我当前的node版本是12.16.1 可以贴出你具体的报错吗?

Yanzengyong avatar Oct 21 '21 01:10 Yanzengyong

微信图片_20211021100040 微信图片_20211021100048 不好意思第一个问题写错了我用12.13.0安装成功了,这是16.4.1和12.16.1安装依赖报的错

yuechongkihi avatar Oct 21 '21 02:10 yuechongkihi

可能是 node-sass 的问题,将 node-sass 替换为sass 试试

zFitness avatar Oct 22 '21 07:10 zFitness

最简单的方式就是换linux或者mac系统试一下。Windows出现的这个问题我也遇到过,折腾了好长时间。后来换mac后就好了。主要是node-sass中需要python实时编译。

如果你非得需要用windows,这里有一个答案仅供参考:

# 安装windows平台构建工具,此过程会安装python. 需要使用管理员权限
npm install --global windows-build-tools

详细可参考该链接-stackoverflow

Abeautifulsnow avatar Nov 19 '21 01:11 Abeautifulsnow

可能是 node-sass 的问题,将 node-sass 替换为sass 试试

ok.

itbj avatar Dec 26 '21 10:12 itbj