Skip to content

Not able to "npm start" with Node 6 (FYI) #55

Description

@flkern

At first, thanks for this create project setup!

FYI: I'm not able to start the application by using Node 6 (Workaround: Downgrade to Node 5)
-> Yes, you also using Node 5

npm version
{ testapp: '1.0.0',
npm: '3.9.3',
ares: '1.10.1-DEV',
http_parser: '2.7.0',
icu: '57.1',
modules: '48',
node: '6.2.1',
openssl: '1.0.2h',
uv: '1.9.1',
v8: '5.0.71.52',
zlib: '1.2.8' }

Error:


npm start

testapp@1.0.0 start /Users//Documents/workspace/testapp
if-env NODE_ENV=production && npm run react-project:start:prod || npm run react-project:start:dev

testapp@1.0.0 react-project:start:dev /Users//Documents/workspace/testapp
eslint modules && react-project start

[react-project] [start] task
[react-project] checking app dependencies
[react-project] NODE_ENV=development
/Users//Documents/workspace/testapp/node_modules/react-project/lib/build.js:53
if (err) throw err;
^

TypeError: Path must be a string. Received undefined
at assertPath (path.js:7:11)
at Object.dirname (path.js:1326:5)
at /Users//Documents/workspace/testapp/node_modules/babel-core/lib/transformation/file/options/option-manager.js:374:36
at /Users//Documents/workspace/testapp/node_modules/babel-core/lib/transformation/file/options/option-manager.js:396:22
at Array.map (native)
at OptionManager.resolvePresets (/Users//Documents/workspace/testapp/node_modules/babel-core/lib/transformation/file/options/option-manager.js:385:20)
at OptionManager.mergePresets (/Users//Documents/workspace/testapp/node_modules/babel-core/lib/transformation/file/options/option-manager.js:369:10)
at OptionManager.mergeOptions (/Users//Documents/workspace/testapp/node_modules/babel-core/lib/transformation/file/options/option-manager.js:328:14)
at /Users//Documents/workspace/testapp/node_modules/babel-core/lib/transformation/file/options/option-manager.js:370:14
at /Users//Documents/workspace/testapp/node_modules/babel-core/lib/transformation/file/options/option-manager.js:390:24

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/Cellar/node/6.2.1/bin/node" "/usr/local/bin/npm" "run" "react-project:start:dev"
npm ERR! node v6.2.1
npm ERR! npm v3.9.3
npm ERR! code ELIFECYCLE
npm ERR! testapp@1.0.0 react-project:start:dev: eslint modules && react-project start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the testapp@1.0.0 react-project:start:dev script 'eslint modules && react-project start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the testapp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! eslint modules && react-project start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs testapp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls testapp
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users//Documents/workspace/testapp/npm-debug.log

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/Cellar/node/6.2.1/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.2.1
npm ERR! npm v3.9.3
npm ERR! code ELIFECYCLE
npm ERR! testapp@1.0.0 start: if-env NODE_ENV=production && npm run react-project:start:prod || npm run react-project:start:dev
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the testapp@1.0.0 start script 'if-env NODE_ENV=production && npm run react-project:start:prod || npm run react-project:start:dev'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the testapp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! if-env NODE_ENV=production && npm run react-project:start:prod || npm run react-project:start:dev
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs testapp
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls testapp
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users//Documents/workspace/testapp/npm-debug.log


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions