Repository navigation
Closed
Description
🐞 Bug report
Command (mark with an x)
- [x] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Is this a regression?
No
Description
Node-sass getting installed however not chosen to be used.
🔬 Minimal Reproduction
ng new sampleProject
? Would you like to add Angular routing? No
? Which stylesheet format would you like to use? CSS
🔥 Exception or Error
🌍 Your Environment
Angular CLI: 7.3.8
Node: 10.9.0
OS: win32 x64
Angular: 7.2.12
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.13.8
@angular-devkit/build-angular 0.13.8
@angular-devkit/build-optimizer 0.13.8
@angular-devkit/build-webpack 0.13.8
@angular-devkit/core 7.3.8
@angular-devkit/schematics 7.3.8
@angular/cli 7.3.8
@ngtools/webpack 7.3.8
@schematics/angular 7.3.8
@schematics/update 0.13.8
rxjs 6.3.3
typescript 3.2.4
webpack 4.29.0
Anything else relevant?
Node-sass has several security issues and we need to get rid of it, but cannot exclude from a base angular project.
Windows 10 (updated).
C:\project>ng new sass-test-wo
? Would you like to add Angular routing? No
? Which stylesheet format would you like to use? CSS
CREATE sass-test-wo/angular.json (3861 bytes)
...
CREATE sass-test-wo/e2e/src/app.po.ts (251 bytes)
> node-sass@4.11.0 install C:\project\sass-test-wo\node_modules\node-sass
> node scripts/install.js
Cached binary found at C:\Users\szellcs\AppData\Roaming\npm-cache\node-sass\4.11.0\win32-x64-64_binding.node
> node-sass@4.11.0 postinstall C:\project\sass-test-wo\node_modules\node-sass
> node scripts/build.js
Binary found at C:\project\sass-test-wo\node_modules\node-sass\vendor\win32-x64-64\binding.node
Testing binary
Binary is fine
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
added 1075 packages from 1026 contributors and audited 42608 packages in 131.486s
found 0 vulnerabilities
Successfully initialized git.
Why? I've chosen not to use SCSS, but CSS.
Metadata
Metadata
Assignees
Labels
No labels
Activity
szellcsaba commentedon Apr 11, 2019
npm install --no-optionaldoesn't help.See also:
#13075 (comment)
szellcsaba commentedon Apr 11, 2019
ng new sass-test-wo --style cssalso doesn't help.alan-agius4 commentedon Apr 11, 2019
Hi, thanks for opening this.
The packages will always be installed irrespective if you choose something other than SCSS as your style format. unless you use it or not. However
node-sasshas been removed in version 8 in favour ofsassSee: #13950
The issue that you are experiencing seems to be related to this NPM issues npm/npm#17633
alan-agius4 commentedon Apr 11, 2019
Closing as this is obsolete in version 8 and the security issue is being tracked here: #14138
angular-automatic-lock-bot commentedon Sep 9, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.