-
-
Notifications
You must be signed in to change notification settings - Fork 30.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
发布命令报错,提示 'NODE_ENV' 不是内部或外部命令,也不是可运行的程序 #21
Comments
嗯,我刚搜到这篇,解决了,还说来自问自答. win下面修改package.json,把里面相应的改掉就行。
|
补充一下,后来莫名其妙run dev又不行了,于是安装了一个cross-env,把package的dev改成如下:
就可以了。理论上下面的也可以这样加cross-env前缀。 |
Closed
windows系统下尽量用cross-env,上面set那种有时候还是会报错~~ |
本地build ok,服务器上build报错“sh: cross-env: 未找到命令” |
geekyouth
added a commit
to geekyouth/caravaggio
that referenced
this issue
Dec 17, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我这边安装成功之后,npm run dev没有任何问题。但在输入发布命令时报错,不论是npm run build:sit-preview还是npm run build:prod,都提示同一个错误:
想问问这个是要需要在那里设置一下这个NODE_ENV吗?
平台是windows,node安装在c盘根目录,版本7.9。
注:windows下面,需要把.eslintrc.js下面的
修改为
否则run dev也会报错,会提示一堆如" Expected linebreaks to be 'LF' but found 'CRLF'"之类的错误。
The text was updated successfully, but these errors were encountered: