Skip to content
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

how to install it from npm #193

Open
mockiemockiz opened this issue Feb 5, 2017 · 3 comments
Open

how to install it from npm #193

mockiemockiz opened this issue Feb 5, 2017 · 3 comments

Comments

@mockiemockiz
Copy link

i run this command:
npm install bootstrap3-wysihtml5-npm

I added this into my app.js (i use laravel 5.4):
require('bootstrap3-wysihtml5-npm');

and i got this error when I run "npm run dev":

These dependencies were not found in node_modules:

  • bootstrap.wysihtml5.commands
  • wysihtml5
  • bootstrap
  • bootstrap.wysihtml5.templates
@rbruhn
Copy link

rbruhn commented Oct 23, 2017

@mockiemockiz Did you ever find a solution for this? Discovering the same problem.

@spieIbug
Copy link

spieIbug commented Oct 31, 2017

@rbruhn @mockiemockiz
The project is only on bower. I've found a fork on npm, but i don't recommand it.

Information

FYI, You can install Bower dependencies through npm install.
I suppose you have your bower.json dependencies file, so you've just to place this in your package.json

"scripts": {
  "postinstall": "bower install"
}

Becarefull, On bower site, it's clearly mentionned ...psst! While Bower is maintained, we recommend using Yarn and Webpack for front-end projects read how to migrate!

So according to this documentation. You can do this :

Solution

  • Place this line in your dependendecies on your package.json
"dependencies": {
    ...,
    "@bower_components/bootstrap3-wysihtml5-bower": "bootstrap-wysiwyg/bootstrap3-wysiwyg",
    ...
  }

This command looks for the dependecy from Github repository.

  • In my case it works with yarn (npm equivalent, both use package.json). So i recommand you using yarn install

The result of this command will be :

node_modules/@bower_components/bootstrap3-wysihtml5-bower/

@rbruhn
Copy link

rbruhn commented Nov 24, 2017

@meyacine Thanks for the help. I tried your way, and several other variations. Yarn would not work for me as I kept getting an I/O error for some reason. I eventually got all the scripts in using aliases in Webpack but then, for some reason, none of my other jQuery code worked. Even trying out various noConflict solutions nothing helped.

I finally decided to ditch this effort after two days and use Summernote. Installed and worked right from the get go.

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

No branches or pull requests

3 participants