当我运行npm run dist
安装Boostrap时,我在Windows上遇到npm update check failed
错误。我该怎么解决这个问题?我正在使用git bash,因此没有sudo
命令。
> bootstrap@4.0.0-beta.2 js-minify-bundle C:\webui\bootstrap-4.0.0-beta.2\bootstrap-4.0.0-beta.2
> uglifyjs --compress typeofs=false --mangle --comments "/^!/" --source-map "content=dist/js/bootstrap.bundle.js.map,includeSources,url=bootstrap.bundle.min.js.map" --output dist/js/bootstrap.bundle.min.js dist/js/bootstrap.bundle.js
INFO: Using input source map: dist/js/bootstrap.js.map
INFO: Using input source map: dist/js/bootstrap.bundle.js.map
┌──────────────────────────────────────────────────────────────┐
│ npm update check failed │
│ Try running with sudo or get access │
│ to the local update config store via │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\Jack Yu\.config │
└──────────────────────────────────────────────────────────────┘
> bootstrap@4.0.0-beta.2 js-minify-standalone C:\webui\bootstrap-4.0.0-beta.2\bootstrap-4.0.0-beta.2
> uglifyjs --compress typeofs=false --mangle --comments "/^!/" --source-map "content=dist/js/bootstrap.js.map,includeSources,url=bootstrap.min.js.map" --output dist/js/bootstrap.min.js dist/js/bootstrap.js
INFO: Using input source map: dist/js/bootstrap.js.map
> bootstrap@4.0.0-beta.2 js-minify-bundle C:\webui\bootstrap-4.0.0-beta.2\bootstrap-4.0.0-beta.2
> uglifyjs --compress typeofs=false --mangle --comments "/^!/" --source-map "content=dist/js/bootstrap.bundle.js.map,includeSources,url=bootstrap.bundle.min.js.map" --output dist/js/bootstrap.bundle.min.js dist/js/bootstrap.bundle.js
INFO: Using input source map: dist/js/bootstrap.bundle.js.map
> bootstrap@4.0.0-beta.2 js-minify-docs C:\webui\bootstrap-4.0.0-beta.2\bootstrap-4.0.0-beta.2
> uglifyjs --mangle --comments "/^!/" --output assets/js/docs.min.js assets/js/vendor/anchor.min.js assets/js/vendor/clipboard.min.js assets/js/vendor/holder.min.js assets/js/src/application.js assets/js/src/pwa.js
┌──────────────────────────────────────────────────────────────┐
│ npm update check failed │
│ Try running with sudo or get access │
│ to the local update config store via │
│ sudo chown -R $USER:$(id -gn $USER) C:\Users\Jack Yu\.config │