node.js - cross-env的作用是什么?
伊谢尔伦
伊谢尔伦 2017-04-17 16:12:15
0
1
761

使用cross-env解决跨平台设置NODE_ENV的问题

问题:是从哪个平台跨到哪个平台?

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

membalas semua(1)
洪涛

Most Windows command prompts will choke when you set environment variables with NODE_ENV=production like that. (The exception is Bash on Windows, which uses native Bash.) Similarly, there's a difference in how windows and POSIX commands utilize environment variables. With POSIX, you use: $ENV_VAR and on windows you use %ENV_VAR%.

这里说的挺清楚的,在不同平台上(Win, POSIX)上设置环境变量的不同。

Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan
Tentang kita Penafian Sitemap
Laman web PHP Cina:Latihan PHP dalam talian kebajikan awam,Bantu pelajar PHP berkembang dengan cepat!