简体   繁体   中英

NPM package not installing for tpp project

I am trying to follow this tutorial to get a twitch plays node server up. I installed node.js. I go to the node.js command prompt, CD to the folder containing all the information that I downloaded from the tutorial, type npm install as said in the tutorial and I get this error:

npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/martynsmith/node-irc.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git 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:

error log: here (Download)

Install gitbash from here - https://gitforwindows.org/ and run npm install in it - see if that works for you.

do cd "~documents/mde/front mission" and perform npm install

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM