Twitter bootstrap 在Windows上安装引导程序:npm更新检查失败

Twitter bootstrap 在Windows上安装引导程序:npm更新检查失败,twitter-bootstrap,npm,Twitter Bootstrap,Npm,当我运行npm run dist安装Boostrap时,我在Windows上发现npm更新检查失败错误。我该如何解决这个问题?我使用的是gitbash,因此没有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 "/^!

当我运行
npm run dist
安装Boostrap时,我在Windows上发现
npm更新检查失败
错误。我该如何解决这个问题?我使用的是gitbash,因此没有
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 │

Windows中的sudo大致相当于使用管理员权限登录。运行安装时您是否具有管理员权限?当我以管理员身份运行时,仍然会遇到相同的问题。Windows中的sudo大致相当于以管理员权限登录。运行安装时您是否具有管理员权限?当我以管理员身份运行时,仍然会遇到相同的问题。