输入npm install 报错npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.13.1 postinstall: `node scripts/build.js`
<p>输入npm install </p><p>报以下错误</p>
<div class="cnblogs_Highlighter">
<pre class="brush:java;gutter:true;">npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.13.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.13.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
</pre>
</div>
<p> </p>
<p>这个是因为sass安装时获取源的问题,修改sass安装的源,使用taobao的npm</p>
<div class="cnblogs_Highlighter">
<pre class="brush:java;gutter:true;">npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
</pre>
</div>
<p>然后运行</p>
<div class="cnblogs_Highlighter">
<pre class="brush:java;gutter:true;">npm install
</pre>
</div>
<p> </p>
</div>
<div id="MySignature" role="contentinfo">
-----------------------有任何问题可以在评论区评论,也可以私信我,我看到的话会进行回复,欢迎大家指教------------------------
(蓝奏云官网如果有地址失效了,可以私信我,后续看到会补充)<br><br>
来源:https://www.cnblogs.com/pxblog/p/12444050.html
頁:
[1]