Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

SarahS's avatar
Level 12

Date Picker

I would like to have a Date Picker for my form but I've tried to install a couple and haven't got very far. Does anyone know of an easy one to install that works well or any tutorials I can follow to set something up? Thanks

0 likes
6 replies
SarahS's avatar
Level 12

Thanks, I will give that a go.

SarahS's avatar
Level 12

I tried to install it but got lots of errors

No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:344:16)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Darwin 19.4.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/sarah/Projects/catalog/node_modules/fsevents
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v5.0.3
gyp ERR! not ok 
SarahS's avatar
Level 12

OK so I have managed to get rid of the XCODE error but I still have these warning:

npm WARN [email protected] requires a peer of node-sass@^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of fibers@>= 3.1.0 but none is installed. You must install peer dependencies yourself.

I don't know if these need fixing.

I've added the css and js links to my head, add the script to my file but I'm still getting nothing! How am I supposed to set this thing up?

SarahS's avatar
Level 12

I've installed that and the other warnings are now sorted but I am still getting nothing. How can I tell if jQuery is working in my app? I've added these to my layout.app.blade but I don't know if I had to or not or if I did it correctly because the other files are linked differently.

    <script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>
    <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" />

Please or to participate in this conversation.