How to make a node.js project in Google Drive Filestream - node.js

I am trying to create a vue project on Google Drive Stream (windows10) but I cannot.
$ cd G:\MyDrive\webdata\sample-app
$ vue init simulatedgreg/electron-vue sample-app
After this command, I input Enter to every questions from vue.
Then following error occurred.
vue-cli · Failed to write the file at: G:\MyDrive\webdata\sample-app\sample-app\.eslintrc.js
EEXIST: file already exists, mkdir 'G:\MyDrive\webdata\sample-app\sample-app\'
I deleted G:\MyDrive\webdata\sample-app\sample-app\ folder and tried again on powershell terminal running by administrator but the result is same.
I also tried to create a react project but similar error occurred.
$ create-react-app koseki-seiri-app
Creating a new React app in G:\MyDrive\webdata\sample-app\sample-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
npm ERR! path G:\MyDrive\webdata\sample-app\sample-app\node_modules\.staging\#babel
npm ERR! code EEXIST
npm ERR! errno -4075
npm ERR! syscall mkdir
npm ERR! EEXIST: file already exists, mkdir 'G:\MyDrive\webdata\sample-app\sample-app\node_modules\.staging\#babel'
npm ERR! File exists: G:\MyDrive\webdata\sample-app\sample-app\node_modules\.staging\#babel
npm ERR! Move it away, and try again.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\rieko\AppData\Roaming\npm-cache\_logs\2019-02-26T21_54_16_969Z-debug.log
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts has failed.
Deleting generated file... package.json
Deleting generated file... node_modules
Done.```
How can I create?

Related

npm start command returns an error in the cmd

I want to start my React app, but when I run npm start, I get this error:
npm ERR! syscall open
npm ERR! path C:\Users\Muchendu\Documents\GitHub\Steve-React/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Muchendu\Documents\GitHub\Steve-React\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Muchendu\AppData\Local\npm-cache\_logs\2022-05-11T09_26_37_201Z-debug-0.log
This could be because right after running
npx create-react-app <your_app_name>
you are trying to run npm start
Instead try switching into your app directory like so:
cd <your_app_name>
because that is where your package.json will most likely exist and then try running
npm start
run this command in the terminal inside your project npm init -y.
This will generate a package.json in your project.
Otherwise since you are making a react app use the npx create-react-app your-app-name this will create all the necessary files for running you application.
What is package.json?
The package.json file is the heart of any Node project. It records important metadata about a project which is required before publishing to NPM, and also defines functional attributes of a project that npm uses to install dependencies, run scripts, and identify the entry point to our package.

npx start, npx install npx init is not working

I have been working with react for years using NPX and yarn and I just got assign to built an app with react-native using react native-cli so i tried setting up my environment using the react native docs and some YouTube videos. But after following the instructions like downloading android studios and adding in my new environment variable, I'm getting an error every time i tired to run
"npx react-native init AwesomeProject" which gave me this error
[![npx react-native init result][1]][1]
I also tried npm install and i got this error on git bash and also on my commandline
npm ERR! syscall spawn bash
npm ERR! path C:\Users\Dennis\Desktop\GitHub\LCRN01-travel-onboarding-app-master\LCRN01-travel-onboarding-app-master\node_modules\core-js
npm ERR! errno -4058
npm ERR! enoent spawn bash ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Dennis\AppData\Local\npm-cache\_logs\2021-11-13T05_50_35_592Z-debug.log```
and also npx react-native start is showing this error on git bash
```openssl config failed: error:02001003:system library:fopen:No such process
Command `start` unrecognized. Make sure that you have run `npm install` and that you are inside a react-native project.```
I have tried running "npm cache clean --force"
but still nothing changed
I can't even run npx create-react-app anymore because i keep getting this error
npx creat-react-app test
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/creat-react-app - Not found
npm ERR! 404
npm ERR! 404 'creat-react-app#latest' is not in this registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Dennis\AppData\Local\npm-cache_logs\2021-11-13T06_05_46_068Z-debug.log
I'm currently using a windows 10 device
node -v 16.13.0
npm -v 8.1.3
[1]: https://i.stack.imgur.com/OTLYj.png
It's create-react-app.
Not totally sure but another issue could be that your Git bash isn't in your PATH.
Plus, npx start and npx install doesn't sound right, maybe you meant npm start and npm install.
On top of that, it seems you have node v11 and not node v16, maybe you have different versions of node, some in Windows' PATH and some only accessible from bash.
It could help to clean up and reinstall your node versions and Git bash, also check your environment variables for remnants of previous versions, and make sure to not confuse npm and npx.

How to resolve the error while running react project?

I am getting an error while trying to run the react project using npm start. I have tried to reinstall npm modules and check but it is not working. It gives error as below:
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\91720\Desktop\React js/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\91720\Desktop\React js\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\91720\AppData\Local\npm-cache_logs\2021-08-30T14_01_45_332Z-debug.log
Follow the steps below, if you've deleted your package.json file in your project.
Create a react application again using npx create-react-app {app-name} in a different folder. Then move to that folder (cd {app-name}) and check whether package.json file does exist.
Copy all the files you've created previously into /src folder of the newly created app.
If you already have the dependencies you used in previously created app, then copy it in dependency section of package.json file of newly created app.
Run npm install in application directory.
Check whether npm modules are created again.
If it installed perfectly, then run npm start to check whether application starts.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\91720\AppData\Local\npm-cache_logs\2021-08-30T14_01_45_332Z-debug.log
This error is because you are not in the current directory
TYPE cd{app-name}
Then npm start

React JS creation problems

Trying to create a new react JS project.
I keep getting this error.
Get the same error when using Visual Studio code, as well.
npm ERR! code EIO
npm ERR! syscall mkdir
npm ERR! path C:\Users\James\Desktop\School\x\my-app\node_modules\.staging\#babel\plugin-transform-for-of-b2ccfdcc
npm ERR! errno -4070
npm ERR! EIO: i/o error, mkdir 'C:\Users\James\Desktop\School\x\my-app\node_modules\.staging\#babel\plugin-transform-for-of-b2ccfdcc'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\James\AppData\Roaming\npm-cache\_logs\2020-09-19T07_50_10_955Z-debug.log
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... node_modules
Deleting generated file... package.json
Deleting my-app/ from C:\Users\James\Desktop\School\x
How do I solve this?
According to this github issue, you need to:
uninstall node js and delete all its files in local and cache and all
the node modules and npm and npm cache folder in this directory.
After it done, you just need to reinstall the npm, this should do the job.

npm start script returns error immediately after installing create-react-app my-first-react-app

As the title states, I just installed the react library and went to start the application for the first time. I'm getting the following error below.
From what I can tell, it seems that the application is looking into the wrong folder to find the starter script. I've not altered any of the initial starter files, or added any of my own. I'm unsure how to address this issue.
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\David\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\David\AppData\Roaming\npm-cache\_logs\2019-12-28T21_32_24_438Z-debug.log```
I think you forgot to cd into (or to change to) your project's directory.
Assuming that you initialised your project in the directory C:\Users\David and gave the project name my-app, just type cd my-app (or to be precise type cd C:\Users\David\my-app\ in your Command Prompt and then run npm start.
The file the error message is complaining about, package.json, is already available inside your project folder.
However, installing create-react-app and then initialising a new app is not the new recommended way.
According to the React documentation, uninstall the create-react-app global npm package and follow the following steps to create a new React app:
npx create-react-app my-app
cd my-app
npm start
Note
npx on the first line is not a typo — it’s a package runner tool that
comes with npm 5.2+.

Resources