NPM installation error of github repository - node.js

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

Related

NPM looking in wrong place for React module

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.

Local workspace file ('angular.json') could not be found in 'Ionic app'

I cloned an IONIC application from project from Github, installed npm and bower on my Windows 10 environment, now when i run
ionic cordova run android
I get an error saying
Local workspace file ('angular.json') could not be found.
Even though i have angular installed, at first i was getting a different error:
The run command requires to be run in an Angular project, but a project definition could not be found.
But then i tried uninstalling/updating/reinstalling many Angular versions, now i'm getting the error saying Angular.json is not found.
How can i fix this?

Angular npm ERR! Please try running this command again as root/Administrator windows 10

All of the sudden I get this error this morning - npm ERR! Please try running this command again as root/Administrator. I'm using windows 10 and Git bash.
This was when trying to simply create a new Angular project via ng new new-project. It's happened while doing other random things like installing the CLI tools and installing packages.
Sometimes I can resolve the issue by running Windows CMD as admin, other times that doesn't work. Sometimes if I just keep running the command, eventually it'll work?!!
I've tried a number of steps to resolve including -
Running CMD as admin
Powershell as admin
npm cache clean
npm cache clean --force
npm cache verify
Uninstalling node and re installing
Changing permission settings on AppData/Roaming/npm
Deleting files in AppData/Roaming/npm/nodemodules
I've seen quite a few posts about this. Has anyone come across this error lately?
I'm running -
Angular CLI: 1.5.0
Node: 8.9.0
OS: win32 x64
Angular: 5.0.0
Thanks
Click Start.
In the Start Search box, type cmd, and then press CTRL+SHIFT+ENTER.
If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
cd [path to project]
and write your command again.
2 option (Works for me)
install choco and reinstall npm as choco package.

npm install is not working on botkit starter facebook project

I would like to develop a chatbot and then chose botkit as the tool to use. Following the steps to install it as described here,I first cloned the repository to my local disk D: this worked but the second step command (for Installing dependencies, including Botkit:)
cd botkit-starter-facebook
npm install
doesn't work giving me the error :
I don't understand what that means so it is hard for me to solve it.
I am using windows 7 x64bits pack 1 and node version 6.9.5 and npm version 3.10.10
Git was not in the path system environment variable and I add it but I am still getting the same error.
This is probably because git is not installed or not in the path. npm is trying to pull some dependency from github but unable to clone it as git is not available. Once you have git working, this should work.

Issue getting started with Google Web Starter Kit

What you need to know:
I have Node, NPM, Ruby, SASS all installed and at lastest stable realeases. (ruby isn't at it's lastest stable but the lastest stable does not have the sass gem):
https://drive.google.com/folderview?id=0B2JHimBsITS6WHpCTmU4SXBQU28&usp=sharing
I updated npm by using the command line and following the guide on troubleshooting updating npm on windows I USED OPTION 3
I then went back to google's instructions for setting up the starter kit:
$ cd web-starter-kit
$ npm install
$ npm install gulp -g
I scrolled down and followed the steps to "Set Up Your Web Starter Kit Project" keep in mind that i renamed the folder from "web-starter-kit" to "google web" in this case for convenience
So i navigated to the starter kit folder using cmd (with admin rights) and typed
npm install
here are the results:
See link to google drive
I still decided to go ahead and still tried to install gulp using
npm install gulp -g
within the starter kit folder heres the results:
See link to google drive
Who ever helps me rectify this will receive my praise forever...I really want to be using this starter kit to start my projects.
Be sure to reference the install.md for the GWSK git repo.
Looking at your install steps above, you are running npm install before installing Gulp. In the doc I referenced, it's Node.js, Gulp, then run the npm install inside of your project root.
I had errors when using the zipped version of GWSK that I downloaded from GitHub. When I cloned the repo with git, I had a error free clean install and no problems at all.
Cheers - D
EDIT:
OK, here is a step by step on the command line...
First I would have downloaded and installed node.js
Then I would have installed gulp (npm install --global gulp)
I'd then go to my web folder and clone the starter kit into a new project folder: "git clone https://github.com/google/web-starter-kit.git my_new_project"
The I cd into my new project folder and run: "npm install"
You should now be ready to work. While still in your new project folder run "gulp serve". That will start your web server, you can make all your changes in the app folder.
HTH - Don

Resources