I have been trying to use pusher in my application. I started receiving this error after I created the PusherFactory, as shown on the screenshot. But, I have been receiving the error undefined type Pusher\Pusher. So I tried to run install pusher using the following command: composer require pusher\pusher-php-server.
After all that, when I try to run npm install && npm run dev, I now get this error:
> dev
> vite
sh: 1: vite: Permission denied
patrick#patrick-nthiwa:~/Music/primecrm/prime$ sudo npm run dev
[sudo] password for patrick:
*
sh: 1: vite: Permission denied*
This is what i finally did and it worked.
1.i installed node scripts using the follwoing command:
npm install react-scripts --save
Then;
composer update
3.i then installed npm;
npm install
4: then i run the dev command and it worked.
npm run dev
Related
im going to create a new react app with npm , but it dos'nt work and i have too many errors each time i try
can someone help me please?:(
i entered this line in cmd
npx create-react-app my-app
and the errors :
npm ERR! code ECONNRESET
npm ERR! syscall read
npm ERR! errno -4077
npm ERR! network read ECONNRESET
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\sobha\AppData\Local\npm-cache\_logs\2022-11-29T11_57_33_191Z-debug-0.log
Aborting installation.
npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... node_modules
Deleting generated file... package.json
Deleting my-app/ from C:\Users\sobha\Desktop\react
Done.
Firstly Check your network connection and then
npm cache clean --force
npm create react-app
The problem could easily be you are being blocked to that website by your ISP's or Company's firewall/proxy. Using the above method is quicker and easier but it's also insecure as it doesnt verify you are connected to the right website. To check if you are being blocked simply go to registry.npmjs.org in your browser. You should get some text back.
Option 1
Try this:
npm config set registry http://registry.npmjs.org/
so that npm requests for http url instead of https.
and then try the same npx create-react-app my-app command.
Option 2
You may also want to check your NPM proxy settings and perhaps remove it.
npm config get proxy
npm config rm proxy
npm config rm https-proxy
I am using azure functions core tools from a cloned repository with a shopify microservice. The project setup has these steps:
npm install
npm run build
npm run typed-az-func -- push
npm run typed-az-func -- push --execute
npm run typed-az-func -- pull
I was logged in on azure using the azure-cli. In the last command (npm run typed-az-func -- pull), I've encountered some errors:
Command errors
I'm running Ubuntu 20.04.3 LTS
and installed Azure Function Core Tools from this: https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=v3%2Clinux%2Ccsharp%2Cportal%2Cbash%2Ckeda
There's a high chance that your npm cache been damaged.
Try npm cache clean --force command before npm run command and this should resolve the issue.
I'm trying to install the Gatsby CLI, but I run into this error every time.
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
I'm on a Mac, and I am using the sudo command. sudo npm install -g gatsby-cli is what's getting me here. Since I'm using sudo, I don't understand why there's a permissions problem.
Any recommendations?
Thanks a lot!
Steps to reproduce: I run vue init webpack myapp with options selected as per screenshot.
Then I got ouput as follows:
npm run dev works fine when I don't do npm audit fix --force or npm install --save-dev webpack-dev-server#3.1.10 and npm install --save-dev url-loader#1.1.2 which I get with npm audit
When I got fixed and run npm run dev, not it's giving errors
Then I run npm i -D webpack-cli as recommended in the output.
But now I have the following error when running npm run dev
Can't figure how to fix this issue...
The issue is with the webpack-dev-server which shouldn't be used in production, so it's generally safe to have a vulnerability in this (until dependent packages update to support version 3.1)
npm install -D webpack-dev-server#3.0.0
I am new to node js and facing issue in installing express js. Please help in fixing the issue and install express js.
Now when i tried to install cryptiles module using the command "npm install cryptiles" i am getting the same error.
Just run npm install cryptiles then re-run your previous command
or if you don't want then go to your packages.json file and remove the dependency...
UPDATE :
Seems this package isn't supported anymore ..
To see yourself install globally:
npm install -g cryptiles
then install try to install in source destination
npm install cryptiles
You should get the following message:
npm WARN install Couldn't install optional dependency: Unsupported