美文网首页
npm 报 code EINTEGRITY(二)

npm 报 code EINTEGRITY(二)

作者: 闲鱼尼克 | 来源:发表于2017-09-25 17:30 被阅读63次

    1. npm 换源

    npm config set registry https://registry.npm.taobao.org
    验证是否成功
    npm config get registry 或者 npm info express

    2.执行 npm install

    3.ionic serve报错

    Error: Missing binding /Users/edward/Desktop/ionic/demo01/node_modules/node-sass/vendor/darwin-x64-57/binding.node
    Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 8.x
    
    Found bindings for the following environments:
      - OS X 64-bit with Node.js 8.x
    
    This usually happens because your environment has changed since running `npm install`.
    Run `npm rebuild node-sass --force` to build the binding for your current environment.
        at module.exports (/Users/edward/Desktop/ionic/demo01/node_modules/node-sass/lib/binding.js:15:13)
        at Object.<anonymous> (/Users/edward/Desktop/ionic/demo01/node_modules/node-sass/lib/index.js:14:35)
        at Module._compile (module.js:624:30)
        at Object.Module._extensions..js (module.js:635:10)
        at Module.load (module.js:545:32)
        at tryModuleLoad (module.js:508:12)
        at Function.Module._load (module.js:500:3)
        at Module.require (module.js:568:17)
        at require (internal/module.js:11:18)
        at Object.<anonymous> (/Users/edward/Desktop/ionic/demo01/node_modules/@ionic/app-scripts/dist/core/bundle-components.js:6:16)
    

    4.执行npm rebuild node-sass --force

    相关文章

      网友评论

          本文标题:npm 报 code EINTEGRITY(二)

          本文链接:https://www.haomeiwen.com/subject/gmedextx.html