1.編譯時出現 Cannot find module 'reflect-metadata'node
2.如何更新npmnpm
3.如何更新package.json的全部包到最新版json
4.windows下安裝node-sass失敗windows
npm i -g reflect-metadata npm uninstall -g @angular/cli npm cache clean npm install -g @angular/cli
npm uninstall -g npm npm cache clean npm install -g npm
-- 注意:npm版本不能低於3.11 npm i -g npm-check-updates ncu -u --packageFile package.json npm install
download win32-x64-48_binding.node manually, put it in C:\Users\Administrator\AppData\Roaming\npm-cache\node-sass\4.5.0 folder.