npm 报 code EINTEGRITY(二)

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是什么 NPM的全称是Node Package Manager,是随同NodeJS一起安装的包管理和分发工具...
    build1024阅读 7,972评论 0 9
  • 描述 npm从以下来源获取配置值,按优先级排序: 命令行标记 在命令行上放置--foo bar设置foo配置参数为...
    竹天亮阅读 44,229评论 0 8
  • 大家好,我是IT修真院深圳分院第3期的学员,一枚正直纯洁善良的前端程序员,今天给大家分享一下,修真院官网前端工程师...
    大大头大阅读 2,978评论 0 1
  • 一、安装node.js运行环境,安装NPM包管理工具(安装node运行环境时会附带NPM包管理工具) 1、进入(h...
    lane_developer阅读 474评论 0 0
  • 这是我写的一系列文章中的第一篇关于如何利用Web开发技术为iOS和Android系统构建混合应用程序(Hybrid...
    bubuli阅读 2,663评论 3 29