Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

node.js err

When ever I type 'npm init' into the console I get an error like this

This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See `npm help json` for definitive documentation on these fields
and exactly what they do.

Use `npm install <pkg>` afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "simple server": Tags may not have any characters that encodeURIComponent encodes.
About to write to I:\01 Web\12 JavaScript FULL STACK\Practice\Node\simple server\package.json:

{
  "name": "",
  "version": ""
}


Is this ok? (yes) no
Aborted.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Swensens\AppData\Roaming\npm-cache\_logs\2017-12-26T22_15_16_350Z-debug.log

I have node.js installed and I am running npm version 5.6.0.

1 Answer

You might need full administrator permissions. Simply right-click command prompt and select run as administrator.