cordova run wp8 on device not working - node.js

Hello I'm trying to run my application on windows phone.
Therefore I use:
cordova run wp8 --device
But I get this error:
ERROR: Error code -2146233087 for command: C:\Program Files (x86)\Microsoft SDKs \Windows Phone\v8.0\Tools\Xap Deployment\XapDeployCmd.exe with args: /installlau nch,C:/pathToProject/platforms/wp8/Bin/debug/CordovaAppProj_Debug _AnyCPU.xap,/targetdevice:de ERROR running one or more of the platforms: Error: C:\pathToProject\platforms\wp8\cordova\run.bat: Command failed with exit code 2 You may not have the required environment or OS to run this project
I'm using cordova 5.0.0, ionic 1.4.5 and npm version 1.4.28 and I am on a windows 8.1 pro 64 bit.
I've googled around but couldn't find any working solution on this.

Related

Error: EPERM: operation not permitted errno:-1

I wanted to make a react native app so I was following this video
https://www.youtube.com/watch?v=I2UBjN5ER4s
React Website Tutorial. I am primarily on windows I wanted my computer to accept commands just like Brian's.
So I figured out a way
https://www.youtube.com/watch?v=xzgwDbe7foQ
Using Corry's method on installing the Ubuntu app I also installed a couple of things listed below and tried running the command npx create-react-app
added 1394 packages in 5m
213 packages are looking for funding
run `npm fund` for details
node:internal/fs/utils:348
throw err;
^
Error: EPERM: operation not permitted, copyfile '/mnt/c/Users/user/Visual Studio Code Projects/website/react-website/node_modules/cra-template/template/README.md' -> '/mnt/c/Users/user/Visual Studio Code Projects/website/react-website/README.md'
at Object.copyFileSync (node:fs:2866:3)
at copyFile (/mnt/c/Users/moham/Visual Studio Code Projects/website/react-website/node_modules/fs-extra/lib/copy/copy-sync.js:73:6)
at onFile (/mnt/c/Users/moham/Visual Studio Code Projects/website/react-website/node_modules/fs-extra/lib/copy/copy-sync.js:59:25)
at getStats (/mnt/c/Users/moham/Visual Studio Code Projects/website/react-website/node_modules/fs-extra/lib/copy/copy-sync.js:51:44)
at startCopy (/mnt/c/Users/moham/Visual Studio Code Projects/website/react-website/node_modules/fs-extra/lib/copy/copy-sync.js:41:10)
at copyDirItem (/mnt/c/Users/moham/Visual Studio Code Projects/website/react-website/node_modules/fs-extra/lib/copy/copy-sync.js:125:10)
at /mnt/c/Users/moham/Visual Studio Code Projects/website/react-website/node_modules/fs-extra/lib/copy/copy-sync.js:118:39
at Array.forEach (<anonymous>)
at copyDir (/mnt/c/Users/moham/Visual Studio Code Projects/website/react-website/node_modules/fs-extra/lib/copy/copy-sync.js:118:23)
at onDir (/mnt/c/Users/moham/Visual Studio Code Projects/website/react-website/node_modules/fs-extra/lib/copy/copy-sync.js:108:10) {
errno: -1,
syscall: 'copyfile',
code: 'EPERM',
path: '/mnt/c/Users/user/Visual Studio Code Projects/website/react-website/node_modules/cra-template/template/README.md',
dest: '/mnt/c/Users/user/Visual Studio Code Projects/website/react-website/README.md'
}
Node.js v18.12.1
Aborting installation.
node has failed.
Deleting generated file... node_modules
Deleting generated file... package.json
Done.
I just wanted to execute commands just like Brian's through windows rather than purchasing a mac or etc.
I installed the js nodes and npm via command:
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\
sudo apt-get install -y nodejs
which I got from here: npm show "NPM ELF : not found error" in WSL
I also wanted to upvote or commented but since I "just" joined I couldn't.
thank you for any help I am going to remove everything start from scratch in the mean time
I also installed g -g++ something along those lines in order to get the npm working I am beginner just getting started.
Again thank you for reading and helping.
(If I figured it out I will update this post whenever possible)
If this helps out anybody else in the future cheers.
Follow the mentioned steps
Use the MSI installer from the nodejs download page
Run the command mentioned below using CMD as administrator
npm install -g node-gyp
Now run the react related commands
Note: The issue is that your terminal/cmd does not have write permission, hence the error.

NEAR protocol - dev env set up on Windows 10 - error when executing npx create-near-app#latest

I am trying to set up the development env on Windows 10. Installed Node.js, yarn and RUST on windows. Then to set up the project, I tried "npx create-near-app#latest" and was prompted to install WSL.. which I did. I re-executed 'npx' command in ubuntu terminal that got installed with WSL but am still getting the same error:
s_wankhede#Sharad-Asus:~$ npx create-near-app#latest
'\wsl$\Ubuntu\home\s_wankhede'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
======================================================
👋 Welcome to NEAR! Learn more: https://docs.near.org/
🔧 Let's get your dApp ready.
======================================================
(NEAR collects anonymous information on the commands used. No personal information that could identify you is shared)
Notice: On Win32 please use WSL (Windows Subsystem for Linux).
https://docs.microsoft.com/en-us/windows/wsl/install
Exiting now.
Questions:
Should I be installing Node.js, yarn and RUST in ubuntu (WSL on windows 10)?
What can I do solve the problem?
OK. Finally I could figure it out after reading lot of articles and lots of trial and error. Here are the simple steps to resolve it and of course these are for machines running Windows.
Install Linux on Windows with WSL - https://learn.microsoft.com/en-us/windows/wsl/install This MUST be the first step
Install Node.js https://nodejs.org/en/download/
Install RUST - (I am writing contracts in RUST) - https://doc.rust-lang.org/book/ch01-01-installation.html Also add wasm toolchain: rustup target add wasm32-unknown-unknown
Install Yarn : npm install -g yarn
Set up the project : npx create-near-app#latest

Installed module not found in electron js

I want to contribute to an open source project called Joplin. But I am not able to setup the development environment.
I have followed the setup instructions as said here . Everything get installed but and when I launch the application in packages/app-desktop by running npm run start(it's build with electron.js) , the application get started but logs this error in the console, due to this error UI is not loaded:
I have checked that module #joplin/fork-htmlparser2 has correctly installed by running npm list #joplin/fork-htmlparser2 command
I do not understand why the error logs say cannot find module #joplin/fork-htmlparser2 since the npm command is saying it's installed.
My OS: Ubuntu 20.04,
Node: v16.0.0,
Npm:7.10.0,

Electron command opens file asscociation menu in Windows 10

I am new to Windows 10. I am building Screencat app for Windows. But when I run the "npm start" in console, I get the below popup asking for how I want to open the js file.
Is it possible to run electron apps in Windows 10?
For Screencat npm start runs the command electron electron.js. It seems that your OS is not recognising electron as a valid command.
Did you follow the instructions (https://github.com/maxogden/screencat#building-the-app) for Windows completely? In particular, installing C++ and installing and running electron-rebuild.
You will need Visual studio C++ installed so you can build the native modules. Here are instructions for cmd.exe
git clone https://github.com/maxogden/screencat.git
cd screencat
npm install
npm install electron-rebuild
.\node_modules\.bin\electron-rebuild.cmd
npm start

Cordova not recognized

I'm Running Windows 10 Node v5.8.0 and Cordova 6.0.0
I'm trying to install and use Cordova, The installation is successful but it gets installed to a file on my desktop the I ones installed a npm package (I long ago deleted that file - Node recreates it for me) instead of installing on the default location..
If I call Cordova from the local file where node has placed it, it will be recognized (but I can't create a new project next to it). and wherever I call Cordova outside of that location I'm getting this error message - 'cordova' is not recognized as an internal or external command,
operable program or batch file.
(This is the command I used for the installation - npm install -g cordova)

Resources