Skip to content
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.

Npm run deploy giving error: Cannot read property 'name' of undefined #612

Closed
codetony25 opened this issue Feb 29, 2016 · 4 comments
Closed

Comments

@codetony25
Copy link

everything works fine when in dev, but I guess when it's trying to compile, it gives errors. Here's my npm log:
npm-log.txt

Not sure what's wrong.

@dvdzkwsk
Copy link
Owner

From what I can see it looks like it might be an issue with better-npm-run.

@dvdzkwsk
Copy link
Owner

@tonytainguyen if you rewrite the scripts to not use better-npm-run (its sole purpose is to set environment variables correctly for windows/unix users), do you have any more luck? For example:

// regular npm script, not a `betterScript`:
"deploy": "NODE_ENV=production DEBUG=app:* npm run clean && babel-node bin/compile"

@dvdzkwsk
Copy link
Owner

dvdzkwsk commented Mar 3, 2016

Also see #571 if you are having deploy problems.

@dvdzkwsk
Copy link
Owner

Closing until more details/feedback are provided.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants