Automattic / _s

Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
http://underscores.me/
GNU General Public License v2.0
10.93k stars 3.12k forks source link

wp-prettier issue on npm install #1430

Open sweetyams opened 4 years ago

sweetyams commented 4 years ago

Every time I try npm install I get the following error:

npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "npm:": npm:wp-prettier@1.19.1
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

Thanks!

Ismail-elkorchi commented 4 years ago

Thanks @sweetyams for the issue report.

This error is caused by the @wordpress/scripts package.

Could you confirm that you have at least node 10.0.0 or later, and npm 6.9.0 or later as this package can't work with lower versions ?

node and npm versions can be checked using those two commands :

$ node -v
$ npm -v
danielopez07 commented 4 years ago

I had the same issue, but I was using node's default version in Ubuntu 18.04 (version 8.x, can't remember exactly now).

Using nvm I managed to upgrade to node v12.18.1, and that solved the problem.