I am using - following configuration on windows 8 64 bit.
Angular CLI: 1.6.4 Node: 8.9.4 OS: win32 x64 Angular: 5.2.2
typescript: 2.5.3 webpack: 3.10.0
Following error occurs when trying to (compile webpack)run angular on 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.
There are some things you can try,
npm install
command again. npm install
. npm rebuild node-sass
command. I hope any of the above steps will work for you.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.