# npm镜像可能会因为一些境外网络导致包安装超时,所以使用国内淘宝镜像来配置安装 [root@node-nfs ~]# npm install -g cnpm --registry=https://registry.npm.taobao.org npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
added 372 packages in 2m
3 packages are looking for funding run `npm fund` for details npm notice npm notice New major version of npm available! 7.4.3 -> 8.9.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.9.0 npm notice Run npm install -g npm@8.9.0 to update! npm notice
# 查看cnpm [root@node-nfs ~]# cnpm -v npm notice npm notice New major version of npm available! 7.4.3 -> 8.9.0 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v8.9.0> npm notice Run `npm install -g npm@8.9.0` to update! npm notice cnpm@7.1.1 (/usr/local/node-v15.7.0/lib/node_modules/cnpm/lib/parse_argv.js) npm@6.14.17 (/usr/local/node-v15.7.0/lib/node_modules/cnpm/node_modules/npm/lib/npm.js) node@15.7.0 (/usr/local/node-v15.7.0/bin/node) npminstall@5.8.1 (/usr/local/node-v15.7.0/lib/node_modules/cnpm/node_modules/npminstall/lib/index.js) prefix=/usr/local/node-v15.7.0 linux x64 3.10.0-957.el7.x86_64 registry=https://registry.npmmirror.com
# 编译 [root@node-nfs project]# cd nginxconfig.io [root@node-nfs nginxconfig.io]# cnpm install ⠋ [do-bulma@github:do-community/do-bulma] install do-bulma from git do-bulma@github:do-community/do-bulma, may be very slow, please keep patience [do-vue@github:do-community/do-vue] install do-vue from git do-vue@github:do-community/do-vue, may be very slow, please keep patience ⠏ [4/41] Installing semver@^6.3.0 WARN node unsupported "node@v15.7.0" is incompatible with chalk@^5.0.0, expected node@^12.17.0 ^14.13 >=16.0.0 ⠙ [4/41] Installing eslint@^8.9.0 WARN node unsupported "node@v15.7.0" is incompatible with node-fetch@^3.2.0, expected node@^12.20.0 ^14.13.1 >=16.0.0 ⠧ [7/41] Installing @babel/types@^7.16.7[@babel/traverse@7.17.10] use @babel/traverse@7.17.9 instead, reason: https://github.com/babel/babel/issues/14525 ⠸ [9/41] Installing collect-v8-coverage@^1.0.0[@babel/traverse@7.17.10] use @babel/traverse@7.17.9 instead, reason: https://github.com/babel/babel/issues/14525 ⠇ [9/41] Installing pretty-format@^27.5.1[@babel/traverse@7.17.10] use @babel/traverse@7.17.9 instead, reason: https://github.com/babel/babel/issues/14525 ⠸ [11/41] Installing ms@2.1.2[@babel/traverse@7.17.10] use @babel/traverse@7.17.9 instead, reason: https://github.com/babel/babel/issues/14525 ⠏ [16/41] Installing fill-range@^7.0.1 WARN node unsupported "node@v15.7.0" is incompatible with @vue/cli-service@5.0.4 › @vue/cli-shared-utils@5.0.4 › @achrinza/node-ipc@9.2.2, expected node@8 10 12 14 16 17 ⠦ [18/41] Installing any-promise@^1.0.0[@babel/traverse@7.17.10] use @babel/traverse@7.17.9 instead, reason: https://github.com/babel/babel/issues/14525 ⠙ [18/41] Installing supports-preserve-symlinks-flag@^1.0.0 WARN node unsupported "node@v15.7.0" is incompatible with eslint-plugin-vue@^8.4.1, expected node@^12.22.0 ^14.17.0 >=16.0.0 ⠹ [21/41] Installing sprintf-js@~1.0.2 WARN node unsupported "node@v15.7.0" is incompatible with eslint-plugin-vue@8.7.1 › vue-eslint-parser@^8.0.1, expected node@^12.22.0 ^14.17.0 >=16.0.0 ⠴ [21/41] Installing webidl-conversions@^4.0.2 WARN node unsupported "node@v15.7.0" is incompatible with eslint-plugin-vue@8.7.1 › vue-eslint-parser@8.3.0 › eslint-visitor-keys@^3.1.0, expected node@^12.22.0 ^14.17.0 >=16.0.0 ⠦ [21/41] Installing domelementtype@^2.2.0 WARN node unsupported "node@v15.7.0" is incompatible with eslint-plugin-vue@8.7.1 › vue-eslint-parser@8.3.0 › espree@^9.0.0, expected node@^12.22.0 ^14.17.0 >=16.0.0 ⠧ [22/41] Installing eslint-visitor-keys@^3.3.0 WARN node unsupported "node@v15.7.0" is incompatible with eslint-plugin-vue@8.7.1 › vue-eslint-parser@8.3.0 › eslint-scope@^7.0.0, expected node@^12.22.0 ^14.17.0 >=16.0.0 ⠙ [22/41] Installing estraverse@^5.1.0 WARN node unsupported "node@v15.7.0" is incompatible with stylelint@^14.5.1, expected node@^12.20.0 ^14.13.1 >=16.0.0 ⠼ [24/41] Installing regenerate@^1.4.2 WARN node unsupported "node@v15.7.0" is incompatible with eslint@^8.9.0, expected node@^12.22.0 ^14.17.0 >=16.0.0
WARN node unsupported "node@v15.7.0" is incompatible with stylelint@14.8.2 › write-file-atomic@^4.0.1, expected node@^12.13.0 ^14.15.0 >=16 ⠹ [26/41] Installing lru-cache@^6.0.0 WARN node unsupported "node@v15.7.0" is incompatible with eslint@8.15.0 › @eslint/eslintrc@^1.2.3, expected node@^12.22.0 ^14.17.0 >=16.0.0 ⠏ [35/41] Installing @xtuc/long@4.2.2[do-vue@1.0.0 › browserify-fs@git+https://github.com/do-community/browserify-fs.git] install browserify-fs from git browserify-fs@git+https://github.com/do-community/browserify-fs.git, may be very slow, please keep patience ✔ Installed 41 packages ✔ Linked 1089 latest versions [1/1] scripts.postinstall core-js@^3.21.1 run "node -e \"try{require('./postinstall')}catch(e){}\"", root: "/root/project/nginxconfig.io/node_modules/_core-js@3.22.4@core-js" Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js: > https://opencollective.com/core-js > https://patreon.com/zloirock > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
[1/1] scripts.postinstall core-js@^3.21.1 finished in 55ms ✔ Run 1 scripts peerDependencies link ajv@6.12.6 in /root/project/nginxconfig.io/node_modules/_ajv-keywords@3.5.2@ajv-keywords unmet with /root/project/nginxconfig.io/node_modules/ajv(8.11.0) peerDependencies WARNING jest@^27.5.1 requires a peer of node-notifier@^8.0.1 ^9.0.0 ^10.0.0 but none was installed peerDependencies WARNING sass-loader@^12.6.0 requires a peer of fibers@>= 3.1.0 but none was installed peerDependencies WARNING pretty-checkbox-vue@^1.1.9 requires a peer of vue@^2.2.0 but vue@3.2.33 was installed peerDependencies WARNING jest@27.5.1 › jest-cli@^27.5.1 requires a peer of node-notifier@^8.0.1 ^9.0.0 ^10.0.0 but none was installed peerDependencies WARNING jest@27.5.1 › @jest/core@^27.5.1 requires a peer of node-notifier@^8.0.1 ^9.0.0 ^10.0.0 but none was installed peerDependencies WARNING jest@27.5.1 › jest-cli@27.5.1 › jest-config@^27.5.1 requires a peer of ts-node@>=9.0.0 but none was installed peerDependencies WARNING webpack-bundle-analyzer@4.5.0 › ws@^7.3.1 requires a peer of bufferutil@^4.0.1 but none was installed peerDependencies WARNING @vue/cli-service@5.0.4 › webpack-dev-server@4.9.0 › ws@^8.4.2 requires a peer of bufferutil@^4.0.1 but none was installed peerDependencies WARNING jest@27.5.1 › jest-cli@27.5.1 › jest-config@27.5.1 › jest-environment-jsdom@27.5.1 › jsdom@^16.6.0 requires a peer of canvas@^2.5.0 but none was installed peerDependencies WARNING do-vue@1.0.0 › jsdom@^19.0.0 requires a peer of canvas@^2.5.0 but none was installed peerDependencies WARNING @vue/cli-service@5.0.4 › @vue/cli-shared-utils@5.0.4 › node-fetch@^2.6.7 requires a peer of encoding@^0.1.0 but none was installed peerDependencies WARNING jest@27.5.1 › @jest/core@27.5.1 › @jest/reporters@^27.5.1 requires a peer of node-notifier@^8.0.1 ^9.0.0 ^10.0.0 but none was installed peerDependencies WARNING sass-loader@^12.6.0 requires a peer of node-sass@^4.0.0 ^5.0.0 ^6.0.0 ^7.0.0 but none was installed peerDependencies WARNING webpack-bundle-analyzer@4.5.0 › ws@^7.3.1 requires a peer of utf-8-validate@^5.0.2 but none was installed peerDependencies WARNING @vue/cli-service@5.0.4 › webpack-dev-server@4.9.0 › ws@^8.4.2 requires a peer of utf-8-validate@^5.0.2 but none was installed peerDependencies WARNING sass-loader@^12.6.0 requires a peer of sass-embedded@* but none was installed deprecate do-vue@1.0.0 › request@^2.88.2 request has been deprecated, see https://github.com/request/request/issues/3142 deprecate do-vue@1.0.0 › request@2.88.2 › har-validator@~5.1.3 this library is no longer supported deprecate do-vue@1.0.0 › request@2.88.2 › uuid@^3.3.2 Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. deprecate do-vue@1.0.0 › react-svg-loader@3.0.3 › react-svg-core@3.0.3 › svgo@^1.2.2 This SVGO version is no longer supported. Upgrade to v2.x.x. deprecate do-vue@1.0.0 › browserify-fs@1.0.0 › level-filesystem@1.2.0 › level-sublevel@5.2.3 › xtend@2.0.6 › object-keys@~0.2.0 Please update to the latest object-keys ✔ All packages installed (1253 packages installed from npm registry, 3 packages installed from git, used 28s(network 27s), speed 0B/s, json 0(0B), tarball 0B, manifests cache hit 1087, etag hit 0 / miss 0)
INFO Starting development server... [95%] emitting (emit) (node:9333) [DEP_WEBPACK_MODULE_ISSUER] DeprecationWarning: Module.issuer: Use new ModuleGraph API
(12674:5) autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated.
Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/chunk-vendors.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/app.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_i18n_ru_index_js.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_i18n_pt-br_index_js.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_i18n_es_index_js.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_i18n_fr_index_js.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_i18n_de_index_js.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_i18n_pl_index_js.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_i18n_zh-cn_index_js.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_i18n_zh-tw_index_js.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_templates_prism_yaml_vue.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_templates_prism_docker_vue.js": no such file
No bundles were parsed. Analyzer will show only original module sizes from stats file.
Webpack Bundle Analyzer saved report to /root/project/nginxconfig.io/dist/report.html
(12674:5) autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated.
Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/chunk-vendors.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/app.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_i18n_ru_index_js.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_i18n_pt-br_index_js.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_i18n_es_index_js.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_i18n_fr_index_js.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_i18n_de_index_js.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_i18n_pl_index_js.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_i18n_zh-cn_index_js.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_i18n_zh-tw_index_js.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_templates_prism_yaml_vue.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/js/src_nginxconfig_templates_prism_docker_vue.js": no such file Error parsing bundle asset "/root/project/nginxconfig.io/dist/app.498542d2466fb7c1.hot-update.js": no such file
No bundles were parsed. Analyzer will show only original module sizes from stats file.
Webpack Bundle Analyzer saved report to /root/project/nginxconfig.io/dist/report.html
# 编译文件,默认编译输出到dist [root@node-nfs nginxconfig.io]# cnpm run build
> nginxconfig.io@1.0.0 build /root/project/nginxconfig.io > npm run build:clean && npm run build:template && npm run build:prism && npm run build:static && npm run build:tool
> nginxconfig.io@1.0.0 build:clean > do-vue clean
Cleaning out dist directory... ...dist directory cleaned for build.
All browser targets in the browserslist configuration have supported ES module. Therefore we don't build two separate bundles for differential loading.
⠏ Building for production...(node:9490) [DEP_WEBPACK_MODULE_ISSUER] DeprecationWarning: Module.issuer: Use new ModuleGraph API (Use `node --trace-deprecation ...` to show where the warning was created) ⠋ Building for production...
(1:300915) autoprefixer: Replace color-adjust to print-color-adjust. The color-adjust shorthand is currently deprecated.
warning
asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). This can impact web performance. Assets: fonts/Inter-Light.ttf (281 KiB) fonts/Inter-Regular.ttf (281 KiB) fonts/Inter-Medium.ttf (285 KiB) fonts/Inter-Bold.ttf (287 KiB) css/app.css (308 KiB) js/chunk-vendors.js (266 KiB)
warning
entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. Entrypoints: app (778 KiB) js/chunk-vendors.js css/app.css js/app.js
Webpack Bundle Analyzer saved report to /root/project/nginxconfig.io/dist/report.html File Size Gzipped