Category : node.js

I am currently performing these terminal commands: composer create-project –prefer-dist laravel/laravel:^7.0 composer require laravel/ui:^2.4 php artisan ui bootstrap –auth npm install && npm run dev This returns the following error sh: mix: command not found npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! @ development: ..

Read more

This are my tailwindcss errors: npm WARN @tailwindcss/[email protected] requires a peer of [email protected]^1.0 but none is installed. You must install peer dependencies yourself. npm WARN @tailwindcss/[email protected] requires a peer of [email protected]^1.5.0 but none is installed. You must install peer dependencies yourself. npm WARN @tailwindcss/[email protected] requires a peer of [email protected]^1.8.3 but none is installed. You must ..

Read more

i have a XML request and i don’t have any idea about how to send message through that soap request. my XML request file structure looks like this. <?xml version=’1.0′ encoding=’utf-8′?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://schemas.test.com/xsd/kannel/handler/v1/" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <soapenv:Header> <testsms:authData xmlns:testsms="http://testsms.com/"> <testsms:user>username</testsms:user> <testsms:key>password</testsms:key> </testsms:authData> </soapenv:Header> <soapenv:Body> <v1:SMSRequest> <v1:requestData> <v1:outSms>message content</v1:outSms> <v1:recepient>81720233436</v1:recepient> <v1:depCode>dept code</v1:depCode> <v1:smscId/> <v1:billable/> </v1:requestData> </v1:SMSRequest> </soapenv:Body> ..

Read more

I have this error when i run npm run dev or npm run watch and I didn’t find what is the mess. It’s happens in a all fresh Laravel 8 app. It looks like happen when I use the developement command ERROR in ./resources/css/app.css Module build failed (from ./node_modules/css-loader/index.js): ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/src/index.js): ..

Read more

I am running a laravel project, version 7 right now. I’ve installed "npm install xxx –save" some modules from git and other datasources – and modified them because I needed them in the project at different locations with small modifications. E.g. I installed vue-material-year-calendar and copied the year-calendar folder in the node_modules folder into year-calendar12 ..

Read more

I want to install Vue in laravel, I run these commands and it all ok: composer require laravel/ui:^2.4 php artisan ui vue php artisan ui vue –auth npm install npm run dev npm run dev is giving me this error and i don’t know what to do at Object.<anonymous> (/home/alikhani97/domains/imalikhani.me/public_html/node_modules/cross- env/src/bin/cross-env.js:3:18) npm ERR! Linux 3.10.0-1127.10.1.el7.x86_64 ..

Read more

I am working on a platform which uses a Laravel server to deliver Web content. This Laravel server consumes services provided by a NodeJS server. Up until now, users can create accounts and login using the built-in Laravel user authentication. Some user details are passed back to NodeJS to create Zoho accounts to enable subscriptions. ..

Read more

I have succeeded to run the Bencevans Screenshot-Desktop function using NodeJs, but at the moment I have trouble implementing it in Laravel. this is my code: const screenshot = require(‘screenshoot-desktop’) const fs = require(‘fs’) screenshot().then((img) => { fs.writeFile(‘out.jpg’, img, function (err) { if (err) { throw err } console.log(‘written to out.jpg’) }) }).catch((err) => { ..

Read more