FormidableLabs / spectacle-boilerplate

[DEPRECATED] Boilerplate project for getting started with Spectacle Core
579 stars 192 forks source link

npm start fail (windows) #4

Closed AlbanMinassian closed 8 years ago

AlbanMinassian commented 8 years ago

npm install => now ok (thanks) npm start + open http://localhost:3000 => BAD

λ npm start

> spectacle-boilerplate@1.0.0 start C:\ami44\spectacle-boilerplate
> node server.js

Listening at http://localhost:3000
webpack built 5d0d130e5f9c1afd80f6 in 4221ms
Hash: 5d0d130e5f9c1afd80f6
Version: webpack 1.12.10
Time: 4221ms
        Asset     Size  Chunks       Chunk Names
    bundle.js  3.52 MB       0       main
bundle.js.map  3.89 MB       0       main
chunk    {0} bundle.js, bundle.js.map (main) 3.41 MB [rendered]
    [0] multi main 40 bytes {0} [built]
.....
  [386] ./assets/markdown.png 3.02 kB {0} [built]
  [387] ./~/raw-loader!./assets/deck.example 897 bytes {0} [built]

ERROR in ./~/spectacle/~/history/lib/createBrowserHistory.js
Module not found: Error: Cannot resolve module 'invariant' in C:\ami44\spectacle-boilerplate\node_modules\spectacle\node_modules\history\lib
 @ ./~/spectacle/~/history/lib/createBrowserHistory.js 9:17-37

ERROR in ./~/spectacle/~/history/lib/createHashHistory.js
Module not found: Error: Cannot resolve module 'invariant' in C:\ami44\spectacle-boilerplate\node_modules\spectacle\node_modules\history\lib
 @ ./~/spectacle/~/history/lib/createHashHistory.js 13:17-37

ERROR in ./~/spectacle/~/history/lib/createHashHistory.js
Module not found: Error: Cannot resolve module 'warning' in C:\ami44\spectacle-boilerplate\node_modules\spectacle\node_modules\history\lib
 @ ./~/spectacle/~/history/lib/createHashHistory.js 9:15-33

ERROR in ./~/spectacle/~/history/lib/createDOMHistory.js
Module not found: Error: Cannot resolve module 'invariant' in C:\ami44\spectacle-boilerplate\node_modules\spectacle\node_modules\history\lib
 @ ./~/spectacle/~/history/lib/createDOMHistory.js 9:17-37

ERROR in ./~/spectacle/~/history/lib/DOMStateStorage.js
Module not found: Error: Cannot resolve module 'warning' in C:\ami44\spectacle-boilerplate\node_modules\spectacle\node_modules\history\lib
 @ ./~/spectacle/~/history/lib/DOMStateStorage.js 10:15-33

ERROR in ./~/spectacle/~/history/lib/createHistory.js
Module not found: Error: Cannot resolve module 'deep-equal' in C:\ami44\spectacle-boilerplate\node_modules\spectacle\node_modules\history\lib
 @ ./~/spectacle/~/history/lib/createHistory.js 9:17-38

ERROR in ./~/spectacle/~/history/lib/runTransitionHook.js
Module not found: Error: Cannot resolve module 'warning' in C:\ami44\spectacle-boilerplate\node_modules\spectacle\node_modules\history\lib
 @ ./~/spectacle/~/history/lib/runTransitionHook.js 7:15-33

ERROR in ./~/spectacle/~/history/lib/deprecate.js
Module not found: Error: Cannot resolve module 'warning' in C:\ami44\spectacle-boilerplate\node_modules\spectacle\node_modules\history\lib
 @ ./~/spectacle/~/history/lib/deprecate.js 7:15-33

ERROR in ./~/spectacle/~/history/lib/parsePath.js
Module not found: Error: Cannot resolve module 'warning' in C:\ami44\spectacle-boilerplate\node_modules\spectacle\node_modules\history\lib
 @ ./~/spectacle/~/history/lib/parsePath.js 7:15-33

Thanks

knowbody commented 8 years ago

I'll look into that today, but one quick fix would be for you to upgrade to npm v3, i think that should fix this issue.

HankMcCoy commented 8 years ago

I was trying to look into this earlier to see if I could PR a fix, but it looks like the source for the latest 1.0.3 release of Spectacle isn't in the repo yet. Is that right, or am I missing something?

And I FWIW I can repro the issue on Mac as well and switching to NPM v3 fixes it for me too. Thanks for the rapid response with info about a workaround! Just starting to fiddle myself, but Spectacle is looking pretty sweet.

kenwheeler commented 8 years ago

@HankMcCoy the source for 1.0.3 is there

kenwheeler commented 8 years ago

Republished to fix npm2