-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
npm run develop on a fresh install doesn't work #524
Comments
@wschenk instead of using Shouldn't matter but... @KyleAMathews would need to comment. I just recently installed it and it does work for me. |
Same issue here too, tried with gatsby and npm. |
I reinstalled node and npm and it's working now, so it must be some versioning thing... |
Will and Chris -- what versions of node/npm were/are you on?
|
I'm using Node 7.0 and getting this. |
Getting the same error with Node v6.9.1 and NPM v3.10.8, tried both aforementioned methods, no dice. |
I'm also getting this error with Node v7.0.0 and NPM v3.10.8, on macOS 10.12.1. |
same error on ubuntu 14.04 and node 6.9.1 and npm 3.10.9 |
Same error here.
Website project’s
|
node 7.0.0, npm 3.10.3 |
Gah so sorry everyone — I published the latest 1.0.0 alpha without its "next" tag which meant NPM thinks it's the default. I've reverted "default" back to 0.12.18 so if you delete the starter you installed and reinstall it, things should be work again. @d2s thanks for posting your package.json — seeing the Gatsby 1.0.0-alpha7 helped figure out what was wrong. |
I'm going to add a deploy script that'll check for this sort of thing to ensure this doesn't happen again. |
Ouch, somehow I'm getting bitten by this even though I've got |
Does running "gatsby develop" work?
|
Nope, same result. I'm doing a bisect now to see where the problem is introduced, starting with the previous version I was on: |
There we go - introduced in 8caa0cf, merged in |
The error message comes from detect-port. |
Here it is - it needs to default to a number. PR incoming. |
0.12.19 is out! Thanks to everyone for helping out! |
Thanks! On Sun, Oct 30, 2016 at 8:32 PM, Kyle Mathews [email protected]
Will Schenk |
I'm getting the next error in a new project using Gatsby I'm using Node 7.8.0 with NPM 4.4.4 and Yarn 0.22.0. This is the error output for bin/gatsby: time since started: 0.052
initial loading: 1197.546ms
(node:75197) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
Failed to require /Users/username/Development/personal/website.github.io/html.js
./html.js
Module build failed: Error: Couldn't find preset "es2015" relative to directory "/Users/username/Development/personal"
at /Users/username/Development/personal/website.github.io/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
at Array.map (native)
at OptionManager.resolvePresets (/Users/username/Development/personal/website.github.io/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
at OptionManager.mergePresets (/Users/username/Development/personal/website.github.io/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
at OptionManager.mergeOptions (/Users/username/Development/personal/website.github.io/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
at OptionManager.init (/Users/username/Development/personal/website.github.io/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at File.initOptions (/Users/username/Development/personal/website.github.io/node_modules/babel-core/lib/transformation/file/index.js:212:65)
at new File (/Users/username/Development/personal/website.github.io/node_modules/babel-core/lib/transformation/file/index.js:135:24)
at Pipeline.transform (/Users/username/Development/personal/website.github.io/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at transpile (/Users/username/Development/personal/website.github.io/node_modules/babel-loader/lib/index.js:46:20)
at /Users/username/Development/personal/website.github.io/node_modules/babel-loader/lib/fs-cache.js:79:18
at ReadFileContext.callback (/Users/username/Development/personal/website.github.io/node_modules/babel-loader/lib/fs-cache.js:15:14)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:359:13)
@ (webpack)-require/lib/webpackRequireEntrypoint.js 1:20-41 |
@davegomez hmmm not sure why that babel error is happening. Are you requiring a file outside of the site root? Perhaps try removing node_modules and reinstalling? |
Also running into Edit: Adding .babelrc with |
Love to give it a try!
The text was updated successfully, but these errors were encountered: