np icon indicating copy to clipboard operation
np copied to clipboard

yolo in package.json is ignored

Open yairEO opened this issue 3 years ago • 3 comments

Description

np key is present in package.json with yolo set to true

"np": {
  "yarn": false,
  "contents": "dist",
  "yolo": true
},

But when running the command np, yolo is ignored.

image

it only works cli: np --yolo

Steps to reproduce

as defined in my package: https://github.com/yairEO/color-picker

Expected behavior

yolo should work and not install dependencies (which takes ~5 minutes on my small project!)

Environment

np - 7.0.0 Node.js - 15.4.0 npm - 7.0.15 Git - 2.27.0.windows.1 OS - Windows 10

yairEO avatar Dec 18 '20 16:12 yairEO

I couldn't reproduce this bug on my windows 10 with np 7.0.0. Yolo worked correctly when I tried in the cli and also in the package.

Your package.json looks good. Any more information you have on how to reproduce this bug will be helpful.

dopecodez avatar Dec 21 '20 17:12 dopecodez

Bummer, that's the worst...not able to reproduce a bug. Well, I don't know what more to tell you.. I don't have any np configuration file which overrides package.json, so at least that is out of the way.

This happens everywhere I use np on actually. (np installed globally)

Well, great package and thank you very much for creating it, regardless of my issue

yairEO avatar Dec 22 '20 12:12 yairEO

This is still happening BTW. For years, (on my amazing super-better-than-shitty-mac Windows 10 machine)

yairEO avatar Feb 03 '23 16:02 yairEO