在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/HTML5  HTML/ vue-cli初始化項目后npm install -S scss,之后就會提示3

vue-cli初始化項目后npm install -S scss,之后就會提示3 vulnerabilities found

剛初始化的項目,然后執(zhí)行npm install -S scss或者執(zhí)行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$
回答
編輯回答
女流氓

官方文檔講得很詳細(xì)了

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>
2017年6月8日 21:26
編輯回答
刮刮樂

sf,一股水軍解答者,hosts已經(jīng)屏蔽了該網(wǎng)站。 看不明白問題嗎?
提問者就是執(zhí)行這個問題報錯 npm audit 用于npm audit:識別并修復(fù)不安全的依賴關(guān)系
scss 確實存在這個問題,比如依賴的包是比指定版本新。
你執(zhí)行一下 npm audit 大概是 hoek 包版本問題。 如果scss 可以正常使用不用理會他
再見,網(wǎng)站已經(jīng)屏蔽了

2018年8月31日 20:41
編輯回答
單眼皮

如果你是想在項目中使用 .scss/.sass

npm i sass-loader node-sass -D
2018年4月9日 11:39