on the Curl Web Content Markup Language

on the Curl Web Content Markup and Programming Language from www.curl.com and www.curlap.com

Monday, July 8, 2013

npm express install fails with ERR and WARN


If an npm install fails with an error such as
npm ERR! install couldn't read dependencies
and IFF that error immediately follows warnings such as
WARN ... [YOUR_SERVER_NAME]@0,0,1 No repository field.
WARN ... [YOUR_SERVERR_NAME]@0,0,1 No readme data.
where YOUR_SERVER_NAME is the name in that package.json file

THEN

you may notice the perhaps not obvious typo of 0,0,1 for 0.0.1 with commas and not '.', i.e., full-stop, dot, period as the version delimiter.

mea culpa

Now to get back to my nunjucks templating for Curl web content ( Curl, as in www.curl.com and curl-aca in /opt/curl/surge/9/bin

Reminder : do not use a sudo for npm install.  Set the minimum privileges so that your, e.g., maintenance www group user, can run npm. without resorting to root privileges especially if the install is global.



No comments:

Post a Comment