Every time I run this command: ionic cordova build android --release
I am using cordova -v
7.0.1
I get this error:
The config file (.\ionic.config.json) is not valid JSON format.
Please fix any JSON errors in the file.
Here is my file:
{
"app_id": "12345",
"name": "myApp",
"type": "ionic1"
}
I'm not sure what's going on here.
This command works fine: cordova build android --release
I am not sure what's going on with ionic.
Goto this path- C:/Users/{your_username}/.ionic
find file ionic.config and delete it.
It will be auto-regenerated by the CLI.
It wasn't my ionic config file after all. It was a package.json and bower.json files. They did not have the dependencies correctly in place and the app name was in uppercase. After I fixed my dependencies, I got the command to work.
Run:
npm uninstall -g ionic
Remove .ionic from user home folder
rm -Rf ~/.ionic
Then, reinstall ionic:
npm i -g ionic
just open the config.json file on your ide, delete all the content and ionic serve
Related
How to apply a patch for Drupal modules files through a composer.json file?
Basically, I have installed slick module and customised code and created a patch file using "git diff" command. Slick module file path is modules/contrib/slick/ directory. Below is the code that i have written in the composser.json file.
"require": {
"drupal/slick": "^2.7",
}
----------------------------------
"patches": {
"drupal/slick": {
"Slick custom changes": "patches/slick/slick.patch"
},
But when running composer install, it just removes this slick package from "modules/contrib/slick, but does not reinstall or add the patch.
If i remove "Slick custom changes": "patches/slick/slick.patch" from composer.json and execute composer install cmd then it install slick module.
How to avoid removing this package and applying the patch?
the errror is 'react-scripts' is not recognized as an internal or external command,
operable program or batch file.
ive tried
npm install
npm install react-scripts --save
npm i -g react-scripts
https://github.com/mareyam/Complete-Maryam-s-Restaurant
i uploaded this code on github without .json file
now im trying to donwnload and use it but cant because ,json file ive lost. ive tried using json file from anothr project but not working
I would recommend using create-react-app to build this project. Run the command, cd into the directory then start the app.
npx create-react-app name_of_app
cd name_of_app
npm start
This will be good enough for development, and you can add all your components into the src/ folder. Here's the documentation for how to start building react web apps.
To get the production build (which I think is what you're trying to go for), run npm run build which will save the build in the build/ folder.
Any time you use a different machine, just pull the project from github and run npm i. I'm assuming that you were talking about the package.json file. This shouldn't be a big deal if you set everything up correctly.
I got my one website on WordPress and had no code at all to be written myself. And now I decided to move one, write my own website, but stuck with some issues with Gulp after installing ("no command 'gulp' found") The most common reason met for Windows is the wrong PATH, and I've changed it. Any other thoughts? That's supposed to be just a starter kit for an auto page reload when HTML, CSS, JS is changed.
this sounds like you only have gulp installed inside your current project.
First Solution:
Simply install gulp-cli globally. This will allow you to use gulp command
note: gulp still need to be installed per project basis.
npm install -g gulp-cli
Second Solution:
in case you don't want to install gulp-cli globally, you can add it as your build script inside your package.json. And then you can run npm run build from your terminal.
{
"script": {
"build": "gulp"
}
}
I installed ipfs using the following command
sudo npm install ipfs --global
I am getting an error ipfs:command not found when i run in it node console.
what am i missing here?
Looks like there's something wrong with your $GOPATH, or you haven't added your $GOPATH's /bin to your $PATH. See the GOPATH section in this doc page: https://golang.org/doc/code.html#GOPATH
I am using a typescript build from this question along with a build-on-save plugin in sublime text 2 to try and get automatic typescript compiling:
{
"cmd": ["tsc","$file"],
"file_regex": "(.*\\.ts?)\\s\\(([0-9]+)\\,([0-9]+)\\)\\:\\s(...*?)$",
"selector": "source.ts",
"osx": {
"path": "/usr/local/bin:/opt/local/bin"
}
}
It never builds because of the following error. Any tips?
[Errno 2] No such file or directory
[cmd: [u'tsc', u'/Users/dbrito/Sites/Prototypes/totem-tracker/client/views/layout.ts']]
[dir: /Users/dbrito/Sites/Prototypes/totem-tracker/client/views]
[path: /usr/local/bin:/opt/local/bin]
[Finished]
Note: node and npm were installed using homebrew. Typescript was installed with npm -g install typescript. I'm on 10.8.2 with the latest xcode and command line tools installed. The following is in my .profile:
export PATH="/usr/local/bin:/usr/local/sbin:~/node_modules/.bin:/usr/local/share/npm/bin:/usr/local/Library/Aliases:${PATH}"
export NODE_PATH="/usr/local/lib/node_modules:${NODE_PATH}"
My guess would be that either it can't find tsc or your file. can you double check the file shown in your error exists, and then give the output of which tsc in your terminal?
Is it outside your /usr/local/bin? Try removing the osx path setting thing.