I am on mac, npm 6.14.4 and dotnet 3.1.300
I am getting the following install error and not able to install dispatch cli.
Failed at the dotnet-2.1#2.1.1005 postinstall script.
I am following the instruction from here.
Related
I wanted to customize the UI elements in the publisher portal and followed this guide
But I get the following error when running this in cmd;
npm run build:dev
ERROR in ./node_modules/#material-ui/core/esm/styles/createPalette.js Module build failed (from ./node_modules/babel-loader/lib/index.js): SyntaxError: .\Downloads\wso2am-4.1.0\repository\deployment\server\jaggeryapps\publisher\node_modules#material-ui\core\esm\styles\createPalette.js: Unexpected token, expected "," (174:319)
I’m using node version 16.14.0 and npm version 8.9.0.
Can you try with the node version 12.x or 14.x? It works with those versions.
I am trying to install all the dependencies of my angular application.
Now once I enter npm i to install all the dependencies I am receiving this error message.
Initially, I thought this is an issue with Installing Angular CLI globally using npm, so I run the
npm install -g #angular/cli
and I received this message -
Now anyone has any idea what is wrong with the angular CLI message and also what do I need to do to successfully install the npm i to my angular application successfully?
Angular requires an active LTS or maintenance LTS version of Node.js:
https://angular.io/guide/setup-local#prerequisites.
So install LTS releases of Node.js: https://nodejs.org/en/about/releases/
yes you have the wrong version of #nguniversal and its not compatible with the current version of angular you have which looks to be 12.x.
so you have to type for good measure:
if any have an error its because one of the packages are not there and that's okay with the next step
npm uninstall #nguniversal/common
npm uninstall #nguniversal/builders
npm uninstall #nguniversal/express-engine
now type
ng add #nguniversal/express-engine
that's it it will add itself - there is still a lot of work post this though so please follow these instructions carefully.
https://angular.io/guide/universal
Firstly I am not 100% certain my Question title is accurate being that I am very new to NPM/Node/React/VSCode.
I am following a tutorial and am at a step where I created a React app using the command:
PS C:\Users\me\Desktop\Programming\Net Core> npx create-react-app client-app --use-npm --typescript
Which appears to have successfully installed the app in:
C:\Users\me\Desktop\Programming\Net Core . "Net Core" being the name of the project.
However when I try to run the following in the terminal I get an error that the react-scripts.js module cannot be found:
PS C:\Users\me\Desktop\Programming\Net Core\client-app> npm start
Error: Cannot find module 'C:\Users\me\Desktop\Programming\react-scripts\bin\react-scripts.js'
The fact that it is looking for 'react-scripts" in the Programming folder makes no sense to me.
I am using Visual Studio Code version 1.38
NPM version 6.11.3
Node.js version 10.11.0
Try to run npm install in the directory before you run npm start.
I am trying to clone and install this repository UpStarMusic for a udemy course.
I have node version of 8.1.2 in my windows 10 with latest VisualStudioCode editor.
When I used npm install into the clone directory I am getting a following error
Detailed Error Log
Errors are at the bottom of this log file.
How to get out of this mess?
Update 1:
I have installed build tools and now I am getting following electron error.
Electron Error
Update 2
Starting command prompt as administrator
changing directory path and building project
I'm trying to create a mobile app with ionic and cordova but when I launch the comand
ionic start {{appname}} blank
after the download npm give me
Error with start undefined
Error Initializing app: There was an error with the spawned command: npminstall
There was an error with the spawned command: npminstall
I can see that the download is completed because I can see the generated folders. I followed all the suggest I found on the web like update node and npm but nothing works.
Here are the version of npm, node, cordova and ionic
ionic 2.2.1
cordova 6.5.0
npm 4.4.1
node 6.10.0
Other little warning:
I don't know why after all the upgrade when i launch
ionic -v
I've got this:
******************************************************
Dependency warning - for the CLI to run correctly,
it is highly recommended to install/upgrade the following:
Please install your Cordova CLI to version >=4.2.0 `npm install -g cordova`
******************************************************
2.2.1
even if the cordova version is > 4.2.0 but I really don't think that this is the primary problem. Any ideas?
EDIT:
I'm working on windows 7
I found the solution!
I tried to lunch the command
ionic start app blank --verbose
and as before it stopped at npminstall. The problem were that verbose doesn't told me the real problem.
I moved inside the folder downloaded by Ionic and I launch
npm install --verbose
and here he told me that the problem were the https proxy configuration.
So if the error gave by Ionic is just
There was an error with the spawned command: npminstall
just go inside the downloaded folder and launch
npm install --verbose
for check the real problem
Uninstall all (ionic, cordova, nodejs).
Install nodejs LTS version using this URL - https://nodejs.org/en/
Install ionic and cordova using this URL - https://ionicframework.com/docs/v2/intro/installation/
Also Reinstall Git and when it asks Adjusting your PATH environment select Use Git from the Windows Command Prompt.
When You install ionic and cordova open cmd as admin.
Then Run command in ionic start myApp blank --v2
I figured how to solve the dependency warning problem
cordova -v
and then you get a question like :
May Cordova anonymously report usage statistics to improve the tool over time?
say yes.then fixed warning problem.
then install npm globally
npm install -g npm
create a app without installing its packages
ionic start app --v2 --skip-npm
seems ok till now?then
cd app
install packages
npm install --save
done!try to start your ionic app
ionic serve