Windows 未能执行';npm运行区';at命令(node build/build plugins.js)loader.js:775模块未找到
我目前正在遵循Bootstrap的工具设置,但我真的很难理解这一点 这是逐步过程()的来源 目前,我能够运行npm脚本(例如,npm run dist-根据Bootstrap中的package.json文件) 在命令('npm run dist')期间,执行的命令如下: 节点build/build-plugins.js(我的引导根文件夹没有任何build文件夹!) 下面是日志(使用GitBash-Windows)Windows 未能执行';npm运行区';at命令(node build/build plugins.js)loader.js:775模块未找到,windows,npm,Windows,Npm,我目前正在遵循Bootstrap的工具设置,但我真的很难理解这一点 这是逐步过程()的来源 目前,我能够运行npm脚本(例如,npm run dist-根据Bootstrap中的package.json文件) 在命令('npm run dist')期间,执行的命令如下: 节点build/build-plugins.js(我的引导根文件夹没有任何build文件夹!) 下面是日志(使用GitBash-Windows) >bootstrap@4.3.1js编译插件C:\Workspace\risco
>bootstrap@4.3.1js编译插件C:\Workspace\risco operacional\risco peracional\packages\bootstrap.4.3.1
>节点build/build-plugins.js
> bootstrap@4.3.1css编译文档C:\Workspace\risco operacional\risco peracional\packages\bootstrap.4.3.1
>跨环境shell节点sass--输出样式扩展--源映射为真--源映射内容为真--精度6站点/docs/$npm_package_version_short/assets/scss/docs.scss站点/docs/$npm_package_version_short/assets/css/docs.min.css
> bootstrap@4.3.1js编译插件覆盖范围C:\Workspace\risco operacional\risco peracional\packages\bootstrap.4.3.1
>cross-env NODE_env=测试节点build/build-plugins.js
内部/modules/cjs/loader.js:775
犯错误;
^
错误:找不到模块“C:\Workspace\risco operacional\risco peracional\packages\bootstrap.4.3.1\build\build plugins.js”
位于Function.Module.\u resolveFilename(internal/modules/cjs/loader.js:772:15)
at Function.Module._load(内部/modules/cjs/loader.js:677:27)
位于Function.Module.runMain(internal/modules/cjs/loader.js:999:10)
在internal/main/run\u main\u module.js:17:11{
代码:“未找到模块”,
requireStack:[]
}
npm错误!代码失效循环
npm错误!错误1
npm错误!bootstrap@4.3.1js compile plugins coverage:`cross env NODE_env=test NODE build/build-plugins.js`
npm错误!退出状态1
npm错误!
npm错误!失败bootstrap@4.3.1js编译插件覆盖脚本。
npm错误!这可能不是npm的问题。上面可能还有其他日志输出。
npm错误!此运行的完整日志可在以下位置找到:
npm错误!C:\Users\sreblo001\AppData\Roaming\npm cache\\ u logs\2019-09-01T13\u 54\u 39\u 217Z-debug.log
财政司司长:127
犯错误;
^
错误:enoint:没有这样的文件或目录,lstat'C:\Workspace\risco operacional\risco peracional\packages\bootstrap.4.3.1\build'
在Object.realpathSync(fs.js:1512:7)
运行汇总时(C:\Users\sreblo001\AppData\Roaming\npm\node\u modules\rollup\dist\bin\rollup:1312:29)
反对。(C:\Users\sreblo001\AppData\Roaming\npm\node\u modules\rollup\dist\bin\rollup:1363:5)
at模块编译(内部/modules/cjs/loader.js:936:30)
at Object.Module._extensions..js(internal/modules/cjs/loader.js:947:10)
在Module.load(内部/modules/cjs/loader.js:790:32)
at Function.Module._load(内部/modules/cjs/loader.js:703:12)
位于Function.Module.runMain(internal/modules/cjs/loader.js:999:10)
在internal/main/run\u main\u module.js:17:11{
错误号:-4058,
系统调用:“lstat”,
代码:'enoint',
路径:“C:\\Workspace\\risco operacional\\risco peracional\\packages\\bootstrap.4.3.1\\build”
}
npm错误!代码失效循环
npm错误!错误1
npm错误!bootstrap@4.3.1js compile bundle:`rollup--environment bundle:true--config build/rollup.config.js--sourcemap`
npm错误!退出状态1
npm错误!
npm错误!失败bootstrap@4.3.1js编译包脚本。
npm错误!这可能不是npm的问题。上面可能还有其他日志输出。
npm错误!此运行的完整日志可在以下位置找到:
npm错误!C:\Users\sreblo001\AppData\Roaming\npm cache\\u logs\2019-09-01T13\u 54\u 39\u 354Z-debug.log
错误:“js编译插件覆盖率”与1一起退出。
npm错误!代码失效循环
npm错误!错误1
npm错误!bootstrap@4.3.1js compile:`npm run all--parallel js compile-*--sequential js copy`
npm错误!退出状态1
npm错误!
npm错误!失败bootstrap@4.3.1js编译脚本。
npm错误!这可能不是npm的问题。上面可能还有其他日志输出。
npm错误!此运行的完整日志可在以下位置找到:
npm错误!C:\Users\sreblo001\AppData\Roaming\npm cache\\ u logs\2019-09-01T13\u 54\u 39\u 938Z-debug.log
错误:“js compile”已与1一起退出。
npm错误!代码失效循环
npm错误!错误1
npm错误!bootstrap@4.3.1js:`npm运行所有js编译js缩小js副本`
npm错误!退出状态1
npm错误!
npm错误!失败bootstrap@4.3.1js脚本。
npm错误!这可能不是npm的问题。上面可能还有其他日志输出。
npm错误!此运行的完整日志可在以下位置找到:
npm错误!C:\Users\sreblo001\AppData\Roaming\npm cache\\ u logs\2019-09-01T13\u 54\u 39\u 973Z-debug.log
错误:“js”与1一起退出。
npm错误!代码失效循环
npm错误!错误1
npm错误!bootstrap@4.3.1dist:`npm run all--parallel css js`
npm错误!退出状态1
npm错误!
npm错误!失败bootstrap@4.3.1dist脚本。
npm错误!这可能不是npm的问题。上面可能还有其他日志输出。
npm错误!此运行的完整日志可在以下位置找到:
npm错误!C:\Users\sreblo001\AppData\Roaming\npm cache\\日志\2019-09-01T13\U 54\U 40\U 318Z-debug.log
您可能运行了npm install bootstrap
命令来下载bootstrap的源代码,因此您缺少build
文件夹
尝试使用Composer下载源代码。这些步骤对我很有效:
composer需要TWB/bootstrap:4.5.0
cd.\vendor\twbs\bootstrap\
npm安装
npm运行区
> 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