After vue-cli initializes the project, npm install-S scss, will prompt for 3 vulnerabilities found.

the project that has just been initialized, then execute npm install-S scss or execute npm install-S sass

MacBookdeMacBook-Pro:vue-shop macbook$ npm install -S scss
+ scss@0.2.4
added 2 packages from 1 contributor in 20.262s
[!] 3 vulnerabilities found [9332 packages audited]
    Severity: 2 Low | 1 Moderate
    Run `npm audit` for more detail

MacBookdeMacBook-Pro:vue-shop macbook$
Mar.28,2021

if you want to use .scss / .sass

in your project
npm i sass-loader node-sass -D

official document is in great detail

You can select pre-processors (Sass/Less/Stylus) when creating the project. If you did not do so, you can also just manually install the corresponding webpack loaders. The loaders are pre-configured and will automatically be picked up. For example, to add Sass to an existing project, simply run:

npm install -D sass-loader node-sass

Then you can import .scss files, or use it in *. Vue files with:

<style lang="scss">
$color = red;
</style>

sf, a group of water army responders, hosts has blocked the site. Don't you understand the problem?
the questioner executes this question. Npm audit is used for npm audit : identify and fix unsafe dependencies.
scss does have this problem, such as depending on packages that are newer than the specified version.
if you execute npm audit, it's probably the version of the hoek package. If scss works properly, ignore it.
Bye, the website has been blocked

.
Menu