Eric Friedman
Eric Friedman

Reputation: 11

What am I missing when getting these errors installing Node on OSX?

Running npm install node (done successfully before on other machines) but now getting the following

npm WARN saveError ENOENT: no such file or directory, open '/Users/USERID/package.json' npm WARN enoent ENOENT: no such file or directory, open '/Users/USERID/package.json' npm WARN USERID No description npm WARN USERID No repository field. npm WARN USERID No README data npm WARN USERID No license field.

Not sure what to do and searching around didn't yield results

Tried running via sudo Tried installing from the Node website pkg Searched around stackoverflow

Hoping to get this installed.

Upvotes: 0

Views: 48

Answers (1)

Freddy
Freddy

Reputation: 1229

npm is a package manager for Node.js, and is not itself used to install Node.js.

You will want to either:

  1. Download the pkg from here and install it: https://nodejs.org/en/download/
  2. Use a package manager like nvm: https://github.com/nvm-sh/nvm

I recommend you get the LTS version.

Upvotes: 1

Related Questions