我正在使用 - 在Windows 8 64位上进行配置。
Angular CLI: 1.6.4 Node: 8.9.4 OS: win32 x64 Angular: 5.2.2
typescript: 2.5.3 webpack: 3.10.0
尝试(编译webpack)运行angular时发生以下错误 在cli: -
ERROR in
./node_modules/css-loader?{"sourceMap":false,"import":false}!./node_mod
ules/postcss-loader/lib?{"ident":"postcss","sourceMap":false}!./src/styles.css
Module build failed: Error: Can't resolve
'~bootstrap/dist/css/bootstrap.css' in 'F:\code\hello-world\src' at
onError
(F:\code\hello-world\node_modules\enhanced-resolve\lib\Resolver.j
s:61:15)
@ ./src/styles.css 4:14-138 @ multi ./src/styles.css
webpack: Failed to compile.
答案 0 :(得分:1)
你可以尝试一些事情,
npm install
命令。npm install
。npm rebuild node-sass
命令。我希望上述任何步骤都适合您。