npm 報(bào) code EINTEGRITY(二)

1. npm 換源

npm config set registry https://registry.npm.taobao.org
驗(yàn)證是否成功
npm config get registry 或者 npm info express

2.執(zhí)行 npm install

3.ionic serve報(bào)錯(cuò)

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.執(zhí)行npm rebuild node-sass --force

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容

  • npm是什么 NPM的全稱是Node Package Manager,是隨同NodeJS一起安裝的包管理和分發(fā)工具...
    build1024閱讀 7,955評(píng)論 0 9
  • 描述 npm從以下來源獲取配置值,按優(yōu)先級(jí)排序: 命令行標(biāo)記 在命令行上放置--foo bar設(shè)置foo配置參數(shù)為...
    竹天亮閱讀 44,223評(píng)論 0 8
  • 大家好,我是IT修真院深圳分院第3期的學(xué)員,一枚正直純潔善良的前端程序員,今天給大家分享一下,修真院官網(wǎng)前端工程師...
    大大頭大閱讀 2,976評(píng)論 0 1
  • 一、安裝node.js運(yùn)行環(huán)境,安裝NPM包管理工具(安裝node運(yùn)行環(huán)境時(shí)會(huì)附帶NPM包管理工具) 1、進(jìn)入(h...
    lane_developer閱讀 474評(píng)論 0 0
  • 這是我寫的一系列文章中的第一篇關(guān)于如何利用Web開發(fā)技術(shù)為iOS和Android系統(tǒng)構(gòu)建混合應(yīng)用程序(Hybrid...
    bubuli閱讀 2,659評(píng)論 3 29