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.
Related
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
H!
i tryin to run my React Project using npm start command in terminal :
npm v7.4.3
node v15.7.0
error in terminal
./src/index.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/index.scss)
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (88)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1
and face this error in localhost:8888
Failed to compile
./src/index.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/index.scss)
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (88)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1
i trying tso solve problem with this commands
npm rebuild node-sass
and other way was reinstall node-sass
im trying to delete node_modules and run npm install
but seem doesnt work for me.
any answers ?
Downgrade node.js to a stable version (LTS) like 14.15.4
Install the compatible node-sass version via npm install node-sass#5.0.0; you can find the list here or use the GitHub releases page, or even install gulp-sass with npm i gulp-sass`.
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.
When i try to generate a production build to deploy my react App i get this error:
Creating an optimized production build...
Failed to compile.
static/js/main.709a793f.js from UglifyJs
SyntaxError: Unexpected token: name (EmailAddress) [./~/#sendgrid/helpers/classes/email-address.js:11,0]
I think this error is caused by the Sendgrid NPM package.
I tried to reinstall Sendgrid via npm and verified that there is no missing dependencies.
-> % npm -v
6.2.0
-> % node -v
v10.8.0
Thank you in advance
I'm trying to get started with react native, so I followed the "get started guide". I installed create-react-native-app without a problem, but when I try to create a project, here is what I get :
npm ERR! Unexpected token ▼ in JSON at position 0 while parsing near '▼ >♥??
Mo?6►???...'
I'm using :
node version : 6.11.4 npm version : 5.5.1
Also I'm working behind a proxy, but I configure npm to work, for instance I could run create-react-app .
As I can see you are using npm version v5+ which according to official react-native documentation buggy and not supported. If you want to use npm only then use the 4.6.1 version.
Additionally you could use Yarn to use this command
Refer:
https://github.com/react-community/create-react-native-app