sindresorhus / pretty-ms

Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`
MIT License
1.07k stars 64 forks source link

Failed to minify when "npm run build" #54

Closed Sylvartore closed 3 years ago

Sylvartore commented 3 years ago

The output from "npm run build"

Failed to compile.

Failed to minify the code from this file: 

        ./node_modules/pretty-ms/index.js:4

Read more here: http://bit.ly/2tRViJ9

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! spendtrack@0.1.2 build: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the spendtrack@0.1.2 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Project dependencies

{
    "antd": "^3.13.5",
    "autoprefixer": "7.1.6",
    "babel-core": "^6.26.3",
    "babel-eslint": "^7.2.3",
    "babel-jest": "20.0.3",
    "babel-loader": "7.1.2",
    "babel-plugin-import": "^1.6.3",
    "babel-preset-react-app": "^3.1.0",
    "babel-runtime": "6.26.0",
    "bip39": "^2.5.0",
    "bitcoinjs-lib": "^3.3.2",
    "bitcoinjs-message": "^2.0.0",
    "case-sensitive-paths-webpack-plugin": "2.1.1",
    "chalk": "1.1.3",
    "cheerio-without-node-native": "^0.20.2",
    "compression": "^1.7.3",
    "copy-to-clipboard": "^3.0.8",
    "cropperjs": "^1.5.9",
    "cross-fetch": "^1.1.1",
    "crypto": "^1.0.1",
    "dotenv": "4.0.0",
    "emoji-picker-react": "^3.2.4",
    "eslint-loader": "1.9.0",
    "express": "^4.16.4",
    "extract-text-webpack-plugin": "3.0.2",
    "file-loader": "1.1.5",
    "fs-extra": "3.0.1",
    "helmet": "^3.15.0",
    "html-webpack-plugin": "2.29.0",
    "human-readable-numbers": "^0.9.5",
    "immutable": "^3.8.2",
    "jest": "20.0.4",
    "less-vars-to-js": "^1.2.1",
    "lodash": "^4.17.20",
    "moment": "^2.20.1",
    "morgan": "^1.9.1",
    "object-assign": "4.1.1",
    "postcss-flexbugs-fixes": "3.2.0",
    "postcss-loader": "2.0.8",
    "pretty-ms": "^7.0.1",
    "promise": "8.0.1",
    "prop-types": "^15.7.2",
    "raf": "3.4.0",
    "react": "^16.4.1",
    "react-addons-css-transition-group": "^15.6.2",
    "react-autosize-textarea": "^3.0.2",
    "react-collapse": "^4.0.3",
    "react-cookies": "^0.1.0",
    "react-copy-to-clipboard": "^5.0.1",
    "react-dev-utils": "^4.2.1",
    "react-dom": "^16.13.1",
    "react-dragscroll": "^2.0.1",
    "react-infinite-scroller": "^1.2.4",
    "react-md-spinner": "^0.2.5",
    "react-modal": "^3.1.10",
    "react-motion": "^0.5.2",
    "react-redux": "^5.0.6",
    "react-responsive": "^4.0.3",
    "react-router-dom": "^4.2.2",
    "react-web-notification": "^0.3.1",
    "recompose": "0.26.0",
    "redux": "3.7.2",
    "redux-actions": "2.2.1",
    "redux-immutable": "4.0.0",
    "redux-saga": "0.16.0",
    "redux-thunk": "2.2.0",
    "reselect": "3.0.1",
    "socket.io-client": "^2.0.4",
    "sw-precache-webpack-plugin": "0.11.4",
    "swiper": "^4.1.0",
    "url": "^0.11.0",
    "url-loader": "0.6.2",
    "webpack": "3.8.1",
    "webpack-dev-server": "2.9.4",
    "webpack-manifest-plugin": "1.3.2",
    "whatwg-fetch": "2.0.3",
    "xmlhttprequest": "^1.8.0"
}
sindresorhus commented 3 years ago

This package works fine in Node.js where it's intended. It's up to you to resolve this issue or find a different package.