Hy,
I'm trying to install the CSS-Framework "Semantic UI" on a Windows 10 PC with npm from node.js.
I've followed the official install-instructions carefully.
- I've installed successful node.js (v4.0.0) with the official Windows Installer.
- Typed in Windows cmd
npm install -g gulp
to install gulp (npm v2.14.2).- First time I've got an error
ECONNRESET
, which I could solve. So gulp was successful installed globally.
- First time I've got an error
At least I've tried several times to install Semantic UI with this code:
npm install semantic-ui --save cd semantic gulp build
Which does work halfway - WARN peerdependencies & the missing dependency package jQuery was the result. But I'm still able to build my fresh installed default Semantic UI Framework withgulp build
.
I said it works halfway on my Windows 10 System, but also when I try to call my local file copy of the default template Fixed Menu I get in the google chrome developer tools following error:
Uncaught ReferenceError: jQuery is not defined / semantic.min.js:11
Okay, it's just a unknown reference, but that pointed me to the missing jQuery package. After googling for it I've found a npm package npm-install-missing (best result for my predicament) and try it out in my project folder - nothing happend, because there is no package.json dependency-file.
So I went deeper in my given project structure by npm "project folder\node_modules\semantic_ui and ran it again. The result was a complete package update of every package in the node_modules-folder with enclosed jQuery package and some more: github, gulp-concat-filenames, gulp-debug, gulp-git, gulp-json-editor, gulp-prompt, gulp-tap, merge-stream, mkdirp and wrench. So 11 packages were missed due to the dependencies of Semantic UI.
But the jQuery ReferenceError is still available. When you try google chromes developer tools on the official semantic-ui.com/, which is build with it's own framework, so you couldn't get any errors, although they put the semantic.min.js file in the same default directory-structure dist/semantic.min.js. Okay, my path has just one directory in front of: semantic/dist/semantic.min.js - but this is, how it's done in the official documentation.
Hopefully someone can help me to get this framework fully alive. :)
Thanks,
Robert