Bootstrap 4 来自源的引导程序4:“npm run dist”引发错误

Bootstrap 4 来自源的引导程序4:“npm run dist”引发错误,bootstrap-4,Bootstrap 4,我试图从源代码处编译,并且已经成功地完成了官方指令中的所有内容,除了当我执行npm run dist时,它突然向我发起了一系列错误,从js lint开始。有人知道会发生什么吗 以下是我所遵循的: 这在OSX 10.12.3上 节点v8.9.4 NPM 6.4.0 npm run dist > bootstrap@4.1.3 dist /Users/me/Desktop/bootstrap 4 test 2/node_modules/bootstrap > n

我试图从源代码处编译,并且已经成功地完成了官方指令中的所有内容,除了当我执行npm run dist时,它突然向我发起了一系列错误,从js lint开始。有人知道会发生什么吗

以下是我所遵循的:

这在OSX 10.12.3上

节点v8.9.4

NPM 6.4.0

    npm run dist

    > bootstrap@4.1.3 dist /Users/me/Desktop/bootstrap 4 test 2/node_modules/bootstrap
    > npm-run-all --parallel css-main js


    > bootstrap@4.1.3 css-main /Users/me/Desktop/bootstrap 4 test 2/node_modules/bootstrap
    > npm-run-all --parallel css-lint css-compile --sequential css-prefix css-minify css-copy


    > bootstrap@4.1.3 js /Users/me/Desktop/bootstrap 4 test 2/node_modules/bootstrap
    > npm-run-all js-lint* js-compile js-minify js-copy


    > bootstrap@4.1.3 css-compile /Users/me/Desktop/bootstrap 4 test 2/node_modules/bootstrap
    > node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap.scss dist/css/bootstrap.css && node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap-grid.scss dist/css/bootstrap-grid.css && node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/bootstrap-reboot.scss dist/css/bootstrap-reboot.css


    > bootstrap@4.1.3 js-lint /Users/me/Desktop/bootstrap 4 test 2/node_modules/bootstrap
    > eslint js/src js/tests build/


    > bootstrap@4.1.3 css-lint /Users/me/Desktop/bootstrap 4 test 2/node_modules/bootstrap
    > stylelint --syntax scss "scss/**/*.scss"


    Oops! Something went wrong! :(

    ESLint: 5.4.0.
    No files matching the pattern "js/tests" were found.
    Please check for typing mistakes in the pattern.

    npm ERR! code ELIFECYCLE
    npm ERR! errno 2
    npm ERR! bootstrap@4.1.3 js-lint: `eslint js/src js/tests build/`
    npm ERR! Exit status 2
    npm ERR! 
    npm ERR! Failed at the bootstrap@4.1.3 js-lint script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/me/.npm/_logs/2018-08-20T22_08_53_067Z-debug.log
    ERROR: "js-lint" exited with 2.
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! bootstrap@4.1.3 js: `npm-run-all js-lint* js-compile js-minify js-copy`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the bootstrap@4.1.3 js script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/me/.npm/_logs/2018-08-20T22_08_53_093Z-debug.log
    ERROR: "js" exited with 1.
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! bootstrap@4.1.3 dist: `npm-run-all --parallel css-main js`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the bootstrap@4.1.3 dist script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/me/.npm/_logs/2018-08-20T22_08_53_179Z-debug.log

要从源代码处编译,您应该克隆我们的存储库,或者通过Github下载它

对于我们的上一个版本:


您无法使用我们共享的内容编译引导程序,因为我们只为那些不想自己编译引导程序的人共享所需的内容

非常感谢您将此整理出来。我完全不知所措。我只是按照你的指示做的,效果很好。我回顾了我的步骤,我认为可能发生的事情是我安装了这些工具,并试图在我通过npm获得的Bootstrap4.1.3的副本上进行编译。很高兴知道。