微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

npm run build 在 Azure CI/CD 管道上无限期挂起

如何解决npm run build 在 Azure CI/CD 管道上无限期挂起

我的 package.json:

{
    "name": "frontend","version": "0.1.4","private": true,"_moduleAliases": {
        "@modules": "dist/rest/modules","@services": "dist/services"
    },"dependencies": {
        "@coreui/coreui": "^3.4.0","@coreui/icons-react": "^1.1.0","@coreui/react": "^3.4.6","@craco/craco": "^5.9.0","@fortawesome/fontawesome-svg-core": "^1.2.35","@fortawesome/free-solid-svg-icons": "^5.15.3","@fortawesome/react-fontawesome": "^0.1.14","@syncfusion/ej2-react-grids": "^19.1.57","@syncfusion/ej2-react-inputs": "^19.1.59","@syncfusion/ej2-react-notifications": "^19.1.63","@syncfusion/ej2-react-popups": "^19.1.57","@testing-library/jest-dom": "^5.11.10","@testing-library/react": "^11.2.6","@testing-library/user-event": "^12.8.3","@types/jest": "^26.0.22","@types/node": "^12.20.7","@types/react": "^17.0.3","@types/react-dom": "^17.0.3","@zerollup/ts-transform-paths": "^1.7.18","axios": "^0.21.1","css-loader": "^5.2.4","node-sass": "^6.0.0","react": "^17.0.2","react-dom": "^17.0.2","react-redux": "^7.2.3","react-router-dom": "^5.2.0","react-scripts": "^4.0.3","react-select": "^4.3.0","react-toastify": "^7.0.4","react-transition-group": "^4.4.1","react-usestateref": "^1.0.5","redux": "^4.0.5","redux-devtools-extension": "^2.13.9","request": "^2.79.0","style-loader": "^2.0.0","typescript": "^4.2.3","web-vitals": "^1.1.1","workBox-background-sync": "^5.1.4","workBox-broadcast-update": "^5.1.4","workBox-cacheable-response": "^5.1.4","workBox-core": "^5.1.4","workBox-expiration": "^5.1.4","workBox-google-analytics": "^5.1.4","workBox-navigation-preload": "^5.1.4","workBox-precaching": "^5.1.4","workBox-range-requests": "^5.1.4","workBox-routing": "^5.1.4","workBox-strategies": "^5.1.4","workBox-streams": "^5.1.4"
    },"scripts": {
        "preinstall": "npx npm-force-resolutions","start": "craco start","build": "craco build","test": "craco test","eject": "react-scripts eject"
    },"eslintConfig": {
        "extends": [
            "react-app","react-app/jest"
        ]
    },"browserslist": {
        "production": [
            ">0.2%","not dead","not op_mini all"
        ],"development": [
            "last 1 chrome version","last 1 firefox version","last 1 safari version"
        ]
    },"devDependencies": {
        "@types/react-router-dom": "^5.1.7","craco-alias": "^3.0.0","purgecss-webpack-plugin": "^4.0.3","tsconfig-paths-webpack-plugin": "^3.5.1","webpack-bundle-analyzer": "^4.4.2"
    }
}

这是我的管道:

image

它曾经可以工作,但由于某种原因停止了。它现在无限期挂起:

image

即使我添加了 --verbose 标志,也没有任何反应。就这样挂着。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。