- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我目前正在关注 Bootstrap 的工具设置,但我真的很难理解这一点。
这是分步过程的来源 (https://getbootstrap.com/docs/4.3/getting-started/build-tools/)
目前,我能够运行 npm 脚本(例如 npm run dist - 根据来自 Bootstrap 的 package.json 文件)
在命令('npm run dist')期间,有一个命令被执行为:node build/build-plugins.js(我的 Bootstrap 根文件夹没有任何构建文件夹!)
这是日志(使用 Git Bash - Windows)
> bootstrap@4.3.1 js-compile-plugins C:\Workspace\risco-operacional\RiscoOperacional\packages\bootstrap.4.3.1
> node build/build-plugins.js
> bootstrap@4.3.1 css-compile-docs C:\Workspace\risco-operacional\RiscoOperacional\packages\bootstrap.4.3.1
> cross-env-shell node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 site/docs/$npm_package_version_short/assets/scss/docs.scss site/docs/$npm_package_version_short/assets/css/docs.min.css
> bootstrap@4.3.1 js-compile-plugins-coverage C:\Workspace\risco-operacional\RiscoOperacional\packages\bootstrap.4.3.1
> cross-env NODE_ENV=test node build/build-plugins.js
internal/modules/cjs/loader.js:775
throw err;
^
Error: Cannot find module 'C:\Workspace\risco-operacional\RiscoOperacional\packages\bootstrap.4.3.1\build\build-plugins.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:772:15)
at Function.Module._load (internal/modules/cjs/loader.js:677:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:999:10)
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bootstrap@4.3.1 js-compile-plugins-coverage: `cross-env NODE_ENV=test node build/build-plugins.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bootstrap@4.3.1 js-compile-plugins-coverage 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! C:\Users\srebelo001\AppData\Roaming\npm-cache\_logs\2019-09-01T13_54_39_217Z-debug.log
fs.js:127
throw err;
^
Error: ENOENT: no such file or directory, lstat 'C:\Workspace\risco-operacional\RiscoOperacional\packages\bootstrap.4.3.1\build'
at Object.realpathSync (fs.js:1512:7)
at runRollup (C:\Users\srebelo001\AppData\Roaming\npm\node_modules\rollup\dist\bin\rollup:1312:29)
at Object.<anonymous> (C:\Users\srebelo001\AppData\Roaming\npm\node_modules\rollup\dist\bin\rollup:1363:5)
at Module._compile (internal/modules/cjs/loader.js:936:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
at Module.load (internal/modules/cjs/loader.js:790:32)
at Function.Module._load (internal/modules/cjs/loader.js:703:12)
at Function.Module.runMain (internal/modules/cjs/loader.js:999:10)
at internal/main/run_main_module.js:17:11 {
errno: -4058,
syscall: 'lstat',
code: 'ENOENT',
path: 'C:\\Workspace\\risco-operacional\\RiscoOperacional\\packages\\bootstrap.4.3.1\\build'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bootstrap@4.3.1 js-compile-bundle: `rollup --environment BUNDLE:true --config build/rollup.config.js --sourcemap`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bootstrap@4.3.1 js-compile-bundle 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! C:\Users\srebelo001\AppData\Roaming\npm-cache\_logs\2019-09-01T13_54_39_354Z-debug.log
ERROR: "js-compile-plugins-coverage" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bootstrap@4.3.1 js-compile: `npm-run-all --parallel js-compile-* --sequential js-copy`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bootstrap@4.3.1 js-compile 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! C:\Users\srebelo001\AppData\Roaming\npm-cache\_logs\2019-09-01T13_54_39_938Z-debug.log
ERROR: "js-compile" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bootstrap@4.3.1 js: `npm-run-all js-compile js-minify js-copy`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bootstrap@4.3.1 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! C:\Users\srebelo001\AppData\Roaming\npm-cache\_logs\2019-09-01T13_54_39_973Z-debug.log
ERROR: "js" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bootstrap@4.3.1 dist: `npm-run-all --parallel css js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bootstrap@4.3.1 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! C:\Users\srebelo001\AppData\Roaming\npm-cache\_logs\2019-09-01T13_54_40_318Z-debug.log
最佳答案
您可能运行了 npm install bootstrap
命令来下载 Bootstrap 的源代码,因此您缺少 build
文件夹。
尝试使用 Composer 下载源代码。这些步骤对我有用:
Composer 需要 twbs/bootstrap:4.5.0
cd .\vendor\twbs\bootstrap\
npm 安装
npm run dist
(Evn.:Windows 10 + PowerShell,安装了 npm、node.js、Ruby+Devkit 与 Bundler 和 Jekyll)
推荐说明:https://getbootstrap.com/docs/4.5/getting-started/build-tools/
关于windows - 无法在命令 (node build/build-plugins.js) loader.js :775 MODULE_NOT_FOUND 处执行 'npm run dist',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57746613/
尽管我使用以下命令安装(并导入)了模块:npm install adaptive-expressions adaptivecards-templating --save。当我去运行我的应用程序时,我收
我刚刚升级到 Node 版本 9.0.0,现在在尝试使用 npm install 时在命令行中收到此错误 npm ERR! code MODULE_NOT_FOUND npm ERR! Cannot
当我做 ionic 发球时,我收到了这个错误。谁能解释一下?尝试更新 npm install 仍然收到此错误。 最佳答案 我遇到了同样的错误,我能够修复它。我的环境是 mac 但试试这个 npm i
我正在为一个项目使用 Node.js。我使用全局安装了 WebdriverIO npm install -g webdriverio 在我的一个文件中,我有: 文件.js var webdriveri
作为一项学习练习,我正在尝试在 Node.js 中构建一个路由器,这意味着可重用。 我的路由器的文件结构如下所示: /myProject app.js /routes
尝试使用 Angular-Fullstack ,创建了一个新网站,但是当 bower install 执行时,它只是默默退出并显示一条消息: bower MODULE_
我删除了包含 bluebird 的本地文件夹在我的系统上使用: rm -rf 现在当我尝试使用以下命令再次安装它时: npm install bluebird或npm install bluebir
我在 git repo 和在线搜索了这个错误,但我没有找到任何让我来到这里的东西。 React native 对我来说是全新的,所以如果我错过了一些愚蠢的事情,我深表歉意。 我正在尝试在我的 reac
我有一个代码库,它在 Node v10.16.3 上的 Windows 机器上运行良好,但是当我尝试在具有 Node v.12.16.3 的 CentOS Linux 机器上安装相同的代码库时,我收到
Babel 告诉我一个插件不存在,但它确实存在。 (我可以用 babel-cli 编译得很好,但是它不支持设置 pragma 选项。所以我只能使用恶心的 .babelrc 文件)我在这里做错了什么?
我在 NodeJS 环境中使用 Webpack 和 BabelJS 转译我的 ES6 代码。问题是,当我尝试导入一组特定的 .js 模块时,会抛出 MODULE_NOT_FOUND 异常。这是我迄今为
无论我做什么,我都会不断收到消息: bower MODULE_NOT_FOUND Cannot find module 'qs' 每当我尝试使用 Bower 安装软件包时。 NPM 版本 1.4.14
ENV: Electron :v11.0.3 Node :v14.15.1 操作系统:win10 2020 x64 package.json - build "build":{ "productN
我目前正在关注 Bootstrap 的工具设置,但我真的很难理解这一点。 这是分步过程的来源 (https://getbootstrap.com/docs/4.3/getting-started/bu
我收到以下错误: { [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' } js-bson:
我是一名优秀的程序员,十分优秀!