Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Npm-debug.log File #23

Closed
miguelmartins17 opened this issue Jan 31, 2020 · 5 comments
Closed

Npm-debug.log File #23

miguelmartins17 opened this issue Jan 31, 2020 · 5 comments
Labels
question Further information is requested starter

Comments

@miguelmartins17
Copy link
Contributor

I'm following the Javascript tutorial but I still have the same error running the npm install command and someone can review this command when they have time.
In the terminal you ask me to add the npm-debug.log file.

Screen Shot 2020-01-31 at 12 40 26

@nelsonic
Copy link
Member

@miguelmartins17 this screenshot does not tell us very much about how you got to this point.
What command did you run to see that error?
npm install? did you run it in an empty directory?
Or in a directory of a repository you cloned from GitHub?
Did you git clone this repository?
e.g: git clone git@github.com:dwyl/javascript-todo-list-tutorial.git

What version of node.js are you running? (run node -v)

Consider re-installing node.js from https://nodejs.org

What did Google tell you when you pasted the error message and searched for a solution?

Failed at the bufferutil@4.0.1 install script 'node-gyp-build'

e.g: https://stackoverflow.com/questions/39739626/what-is-node-gyp/39741537
node-gyp is a tool which compiles Node.js Addons. Node.js Addons are native Node.js Modules, written in C or C++, which therefore need to be compiled on your machine.

I know that the https://github.com/dwyl/javascript-todo-list-tutorial does not have any Native Addons,
so I'm very surprised to be seeing a node-gyp error ... 😕

Also, when the error message tells you to "Please include the following file with any support requests"
That generally means include the contents of the npm-debug.log not a screenshot of the error message ... try running:

pbcopy < npm-debug.log

Then paste the contents of the npm-debug.log file in the issue so that someone can help you debug.

@nelsonic nelsonic added question Further information is requested and removed awaiting-review labels Jan 31, 2020
@miguelmartins17
Copy link
Contributor Author

@nelsonic I wrote which command I ran, it was the npm Install.
I cloned the javascript-todo-list-tutorial repository, I ran the npm install command inside the repository.

First I cloned the repository.
Then I used the command cd javascript-todo-list-tutorial.
And then I ran the npm install command which is where those errors appeared.

At the moment the version I'm using from node.js and the version 0.12.1.
This well I'll try now to use the command (pbcopy < npm-debug.log).

@nelsonic
Copy link
Member

Please update your version of node.js. https://nodejs.org ⬆️
(version 0.12.1 is from 2015 ... that was the last time I used the laptop you are working on) ⏳
You should no longer see any node-gyp issues once you download the latest version of node.js.

@miguelmartins17
Copy link
Contributor Author

@nelsonic Thanks, the mistake really doesn't come up anymore, I'll keep going then. 👍

@nelsonic
Copy link
Member

Thanks for confirming you are no longer seeing the node-gyp error. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested starter
Projects
None yet
Development

No branches or pull requests

2 participants