I have a problem with the nuxt project deploy on cpanel - node.js

I have a problem with the nuxt project deploy on cpanel
Please, if anyone can fully guide me, thank you for running on the host
The image of the errors is available in the following links
enter image description here
enter image description here

To solve this problem, I installed the nuxt-start package before npm run build,
npm i --save nuxt-start
then
npm run build
and then
npm run start,
and the problem was solved, I said maybe this solution was needed for other people

Related

An unhandled exception occurred: Cannot find module './browsers' -

I looked for other questions available on stack but was not able to find ans related to this issue.
I have just started Angular and installed things as asked on Udemy course. Creating app and then starting with ng serve.
While I am running ng serve, I am getting below error.
After running npm install I am getting below message.
Can you please guide me to solve this error ?
Thank you very much in advance. :)
well try this one it works for me: npm install --save-dev #angular-devkit/build-angular
If the error message persists after installing packages, it may be due to the NPM settings. In recent versions of the package manager, by default it only installs the packages needed for the production version of the project. The "build-angular" package is a development dependency. If you want to make the website work, you have to tell NPM to install the development packages, by adding the "--only" option with the "dev" version so you should use this command instead:npm i --only=dev
Thank you for above answers.
With below steps followed including avoiding few mistakes, I was able to make it work.
Installed packages in C drive instead of my application folder.
Deleted my old app and recreated it from scratch.
And then when I gave "ng serve" it ran fine.

Issue with NPM start ( React)

I have just tried to view an old application of mine using npm start but it wont load keep getting the error.
Cannot find module 'C:\Users\Team Knowhow\development\Punk-API\node_modules\react-scripts\bin\react-scripts.js.
I tried creating a new react app and NPM start works fine so have no idea what the issue is with my old react app and why NPM start does not work.
Have you installed dependencies first using npm install.
If done already, try removing node_modules folder and installing dependencies again.
Make sure you have installed all dependencies including react-scripts!
You've to ensure that all the dependencies that your application is using is mentioned in the correct manner with their correct version in your pacakage.json file. And if that looks alright then run
npm i
or
npm install
This command will download all the dependencies that are mentioned in your package.json file.

Getting started with Create React App - "Cannot find module"

I'm using the "Getting Started" guide because I've been experiencing endless errors trying to create a react app so far when following tutorials.
And straight away I'm running into a problem. When I run npx create-react-app my-app I get the following:
Cannot find module 'C:\Users\Aristophanes\node_modules\create-react-app\index.js'
Can anyone advise me what I'm doing wrong? Thanks.
This must be a problem related with your node installation (maybe you removed manually create-react-app package?). I'd recommend following these steps:
Uninstall node and npm
Delete the npm cache and npm modules in your machine (In Windows machine you can usually find them at C:\Users\ {username} \AppData\Roaming\npm-cache and C:\Users\ {user name} \AppData\Roaming\npm) respectively.
Install node and npm again
If you really don't want to delete node and npm, try step 2 and see if that works. Following these steps did the job for me, hope that helps you.
I think you might miss installing Node and npm in your machine.
I had same issue a few times. Every time I was searching thru net for a solution, and for every time i just typed in terminal
npm i node
and its just started working

Get "npm ERR! Darwin 16.1.0" Error when running "npm start" on angular 2 quickstart after downloading from bitbucket

I'm trying to get Auth0 working on angualr 2 project,
I'm using the code Auth0 allow you to download, from their sample project, and it works when I run npm install and then npm start.
But then if I upload it to bitbucket, and trying to download it again, after running npm install and npm start I get this error:
enter image description here
Do you know what this error means?
and do you know how I can fix it?
In general how is the best way to debug these types of errors?
If you would like to play with the code you can download it from here:
https://bitbucket.org/tommycp2/integrify
Good News, I just worked it out with this solution: https://github.com/angular/angular/issues/10891
I needed to update the typings.

NPM: npm install hangs on fetchMetaData -> addTmpTa

I downloaded a react js Github project and tried npm install on this project.
npm install hangs on fetchMetaData -> addTmpTa.
My network connectivity is good, tried searching this issue on google but cant find anything. Any help will be highly appreciated. If u know what does addTmpTa during the installation please do comment below.
try to run your npm command from "node.js command prompt", and make sure to run it as administrator.
this has solved my problem;

Resources