美文网首页
node error

node error

作者: 王国的荣耀 | 来源:发表于2023-03-12 16:52 被阅读0次

    Cannot read properties of null (reading ‘pickAlgorithm‘)

    npm cache clear --force
    npm install
    

    error: no template named 'remove_cv_t' in namespace 'std'; did you mean 'remove_cv'?

    使用npm install或yarn install时一直报错,翻了好久百度才发现是依赖中 node-sass 的版本不支持 Node.js16 ,只能在 15 及以下的环境下运行,通过 node 版本控制器 n 对使用的 node 进行降级就可以正常安装 node-sass ,安装当前 node 的稳定版本就可以正常使用。

    mac nodejs dmg

    https://nodejs.org/dist/v18.15.0/node-v18.15.0.pkg
    https://nodejs.org/dist/v15.9.0/node-v15.9.0.pkg
    https://nodejs.org/dist/v16.19.0/node-v16.19.0.pkg

    相关文章

      网友评论

          本文标题:node error

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