我需要在React中将一个数字更改为货币格式--在我的情况下,这是不起作用的:
import Numeral from "numeral";
Numeral(100).format("$0.00")
它的输出: Metro Bundler遇到了一个内部错误。我知道数字不是为反应而建的--本地人,但有没有其他的解决办法?
我分叉回购并下载它,然后在Visual 2017社区中打开它,如下所示:
1:right-click the MakeLists.txt and click the Rebuild All. (x64 Debug)
2:Then, i found the build directory at here:C:\Users\SHIZU-NOTEBOOK\AppData\Local\CMakeBuild\233159a3-9dca-9735-91fc-be7911e3ef6d\build\x64-Debug\Debug
我找不到像*\bin这样的目录,也是在cmd "pbrt“中找不到的。
环境- Windows 7企业(Service Pack 1)
流程
已安装git
配置了用于git的user.name和user.email
安装nodejs
node version - 8.11.3
npm version - 6.4.0
安装Python2.7.3
added environement variable and updated path statement
安装Visual 2015社区版本
installed Visual C== 2015 Tools for Windows Desktop
installed Windows XP Support for C++