zoukankan      html  css  js  c++  java
  • Failed at the node-sass@4.14.1 postinstall script. npm ERR! This is probably not a problem with npm

    报错信息:

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! node-sass@4.14.0 postinstall: `node scripts/build.js`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the node-sass@4.14.0 postinstall script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    解决方案:直接在当前目录下进行node-sass 的数据源没设置

    npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass

    再次执行:

    npm i

    错误信息及解决信息:

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the node-sass@4.14.1 postinstall script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     D:software
    odejs
    ode_cache\_logs2020-05-13T15_39_06_423Z-debug.log
    PS P:safetyEducation> npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
    PS P:safetyEducation> npm i
    
    > node-sass@4.14.1 install P:safetyEducation
    ode_modules
    ode-sass
    > node scripts/install.js
    
    Downloading binary from https://npm.taobao.org/mirrors/node-sass/v4.14.1/win32-x64-72_binding.node
    Download complete  ] - :
    Binary saved to P:safetyEducation
    ode_modules
    ode-sassvendorwin32-x64-72inding.node
    Caching binary to D:software
    odejs
    ode_cache
    ode-sass4.14.1win32-x64-72_binding.node
    
    > node-sass@4.14.1 postinstall P:safetyEducation
    ode_modules
    ode-sass
    > node scripts/build.js
    
    Binary found at P:safetyEducation
    ode_modules
    ode-sassvendorwin32-x64-72inding.node
    Testing binary
    Binary is fine
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modulesfsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
    
    added 72 packages from 62 contributors in 13.046s
    
    25 packages are looking for funding
      run `npm fund` for details
    
    PS P:safetyEducation> npm run dev
    
    > renren-fast-vue@1.2.2 dev P:safetyEducation
    > webpack-dev-server --inline --progress --config build/webpack.dev.conf.jsworkforceManages。。。。this will throw an 95% emitting
    
     DONE  Compiled successfully in 12486ms                                                                                                                             23:40:14
     I  Your application is running here: http://localhost:8001
  • 相关阅读:
    windows向Linux服务器上传、下载,服务器内复制、移动文件
    解决:ubuntu提示E: 无法获得锁 /var/lib/dpkg/lock-frontend
    PostgreSQL安装与简单操作
    LeetCode 234.回文链表
    LeetCode 445.两数相加 II
    LeetCode 24.两两交换链表中的节点
    LeetCode 19.删除链表的倒数第 n 个节点
    LeetCode 26.删除排序数组中的重复项
    Java 程序运行机制
    String 属于基础的数据类型吗?
  • 原文地址:https://www.cnblogs.com/Dark-fire-liehuo/p/12885864.html
Copyright © 2011-2022 走看看