【问题标题】:node-gyp rebuild > build_log.txt 2>&1 || exit 0节点gyp重建> build_log.txt 2>&1 ||出口 0
【发布时间】:2018-08-31 15:52:20
【问题描述】:
uws@9.14.0 install /var/www/html/my-app/node_modules/uws
node-gyp rebuild > build_log.txt 2>&1 || exit 0

错误:包安装失败,见上文。

我在点击ng new my-app时遇到了这个错误

使用;

  • Angular CLI:1.7.3
  • 节点:9.9.0
  • 操作系统:linux x64 AWS EC2
  • npm: 5.6.0

【问题讨论】:

    标签: node.js angular amazon-ec2 npm npm-install


    【解决方案1】:

    你需要全局安装node-gyp和socket.io

    # cd ~
    # npm install -g node-gyp
    # npm install socket.io
    

    【讨论】:

    • 您应该尝试删除您的 node-gyp 文件夹,然后从 /home/username/.node-gyp 或 /Users/username/.node-gyp 重试
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-13
    • 1970-01-01
    • 1970-01-01
    • 2020-02-22
    • 2021-05-01
    • 1970-01-01
    相关资源
    最近更新 更多