yo icon indicating copy to clipboard operation
yo copied to clipboard

Error when I try to install yo on my MacOs Catalina - publish-please can't be installed globally.

Open 0GiS0 opened this issue 4 years ago • 3 comments

Type of issue

bug


My environment

  • OS version/details: MacOS Catalina 10.15.7
  • Node version: v14.4.0
  • npm version: 6.14.9
  • Version of yo : I couldn't install it

Expected behavior

Hi all, I'm trying to install yo on my Mac using npm install -g yo

Current behavior

I always get this error: Starting from v2.0.0 publish-please can't be installed globally.

Steps to reproduce the behavior

Just execute npm install -g yo

Command line output

➜ ~ npm install -g yo
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated

[email protected] preinstall /Users/gis/.npm-packages/lib/node_modules/yo/node_modules/publish-please node lib/pre-install.js

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! Starting from v2.0.0 publish-please can't be installed globally. !! !! Use local installation instead : 'npm install --save-dev publish-please', !! !! Or use npx if you do not want to install publish-please as a dependency. !! !! (learn more: https://github.com/inikulin/publish-please#readme). !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] preinstall: node lib/pre-install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] preinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/gis/.npm/_logs/2020-12-06T15_48_03_025Z-debug.log

0GiS0 avatar Dec 06 '20 15:12 0GiS0

same problem node: '12.19.0',npm: '6.14.9' elementary OS 5.1.7 Hera(based on Ubuntu 18.04.4 LTS Linux 5.9.0-rc4+ GTK 3.22.30)

` npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: cross-spawn no longer requires a build toolchain, use it instead npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated

[email protected] preinstall /home/evgenii/.nvm/versions/node/v12.19.0/lib/node_modules/yo/node_modules/publish-please node lib/pre-install.js

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! Starting from v2.0.0 publish-please can't be installed globally. !! !! Use local installation instead : 'npm install --save-dev publish-please', !! !! Or use npx if you do not want to install publish-please as a dependency. !! !! (learn more: https://github.com/inikulin/publish-please#readme). !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^2.1.2 (node_modules/yo/node_modules/jest-haste-map/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] preinstall: node lib/pre-install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] preinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/evgenii/.npm/_logs/2020-12-06T16_30_32_012Z-debug.log `

GlagolevEvgenii avatar Dec 06 '20 16:12 GlagolevEvgenii

Encountering the same issue on Windows 10.

OS version: Windows 10 Home Version 10.0.19041 Build 19041 Node version: v15.3.0 (latest) npm version: v6.14.9 (latest)

Same npm output.

ClubiNew avatar Dec 06 '20 16:12 ClubiNew

same problem, seems happen from several hours ago...

zhongshan1993 avatar Dec 06 '20 17:12 zhongshan1993