Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

require(...) is not a function #72

Closed
huadong1989 opened this issue Mar 4, 2017 · 2 comments · Fixed by #75
Closed

require(...) is not a function #72

huadong1989 opened this issue Mar 4, 2017 · 2 comments · Fixed by #75

Comments

@huadong1989
Copy link

huadong1989 commented Mar 4, 2017

@kentcdodds
cross-env fails to run:

/private/var/www/ndsm/ndsm-web/webapp/node_modules/cross-env/dist/bin/cross-env.js:4
require('../')(process.argv.slice(2));
^

TypeError: require(...) is not a function
at Object. (/private/var/www/ndsm/ndsm-web/webapp/node_modules/cross-env/dist/bin/cross-env.js:4:15)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:420:7)
at startup (bootstrap_node.js:139:9)
at bootstrap_node.js:535:3`

@blade254353074
Copy link

Same issue...

require('../')(process.argv.slice(2));
              ^

TypeError: require(...) is not a function
    at Object.<anonymous> (/Users/SebastianBlade/Documents/Workspace/Web/git/Reantx/node_modules/cross-env/dist/bin/cross
-env.js:4:15)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:425:7)
    at startup (bootstrap_node.js:146:9)
    at bootstrap_node.js:540:3

@Pegasuz
Copy link

Pegasuz commented Mar 4, 2017

I also encounter this problem.

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

Successfully merging a pull request may close this issue.

3 participants