-
-
Notifications
You must be signed in to change notification settings - Fork 328
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" was unexpected at this time. Error on npm install (windows) #63
Comments
Hi @aylabyuk, Logs would be helpful, to understand whats happening |
Though I bet the problem is caused by commands inside "scripts", e.g. by this construction: |
sorry here is the log from npm-debug.log file here is the start of the error. 97 error Windows_NT 10.0.14393 |
@aylabyuk I've pushed commit that might fix this issue. Unfortunately right now I can't test it under Windows. Could you update source code, try under Windows and report back? |
@Vlasenko I have updated the code and run npm install --save-dev if-env. still have issue installing here is the error log:
|
I think now the scripts are Windows-friendly. Please clone the latest version of this repo and check. |
Actually slightly changing Getting Started steps, I've managed to make scripts sections easier then it was, yet keeping them cross-platform. |
@Vlasenko thank you for the effort. I will test this out as soon as I get back to office where I use windows. I cant test it right now since my personal computer runs on ubuntu. I will let you know then. By the way this is a cool project..kudos. |
Perhaps instead of using an inline conditional statement there could be separate npm scripts and/or the use of |
@josephdburdick I think right now it is done like you describe :) The |
puts on 👓 so it has! 👍 |
@aylabyuk Could you confirm, if it works for you or no? |
I am running on windows 10 with the latest node and npm but when I tried to npm install the package it produce an error "$NODE_ENV" was unexpected at this time. I have tried to install it on ubuntu and it works fine. It only happens on windows. Any ideas why?
The text was updated successfully, but these errors were encountered: