Giter VIP home page Giter VIP logo

Comments (9)

c-trimm avatar c-trimm commented on August 16, 2024 2

This is now fixed in 1.0.7 - pre and post install scripts have been removed.

from moment-recur.

ZombiEquinox avatar ZombiEquinox commented on August 16, 2024

I am trying to install VIA NPM onto a node server, and I am getting the same issue. moment-recur will not install because of the preinstall. I've tried installing just the two dependencies by themselves, and it still won't install.

from moment-recur.

bmathews avatar bmathews commented on August 16, 2024

Can be circumvented by adding a .bowerrc file to your project root with { "allow_root": true }

from moment-recur.

tphummel avatar tphummel commented on August 16, 2024

gulp is already in devDependencies. why are you installing it again as a preinstall script? can bower be added to devDependencies, too? or is there some reason you put it in preinstall? i'm referring to this:

  "scripts": {
    "test": "gulp test",
    "preinstall": "npm install bower gulp",
    "postinstall": "bower install"
  },

from moment-recur.

jrgd avatar jrgd commented on August 16, 2024

thanks @bmathews that did the trick

from moment-recur.

paglias avatar paglias commented on August 16, 2024

This makes it impossible to run npm install && npm shrinkwrap because NPM will see gulp and bower as extraneous deps and error

from moment-recur.

kilianc avatar kilianc commented on August 16, 2024

This is still a bug even with the workaround. the preinstall and postinstall should be ran before publishing to npm and we should only get the module's files when we require. I don't have bower on my container and this makes it impossible to use the library :(

from moment-recur.

 avatar commented on August 16, 2024

You may want to move away from bower anyway:

npm WARN deprecated [email protected]: ..psst! While Bower is maintained, we recommend Yarn and Webpack for *new* front-end projects! Yarn's advantage is security and reliability, and Webpack's is support for both CommonJS and AMD projects. Currently there's no migration path but we hope you'll help us figure out one.

from moment-recur.

fubar avatar fubar commented on August 16, 2024

This is exactly why I created this: https://www.npmjs.com/package/moment-recur-npm / https://github.com/fubar/moment-recur-npm

(I still need to pull the recent changes into it.)

from moment-recur.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.