-
-
Notifications
You must be signed in to change notification settings - Fork 131
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I write a demo, and it uses npx patch-package is-number
, then Cannot find module 'node:process'
- Environment: Node.js 14.7.0
yaml
: 2.7.0
To Reproduce
1.create a folder dds
2.npm init -y
3.npm install patch-package
then the version of node_modules/yaml
is 2.7.0
4. modify node_modules/isarray/index.js
var toString = {}.toString;
module.exports = Array.isArray || function (arr) {
console.log(111);
return toString.call(arr) == '[object Array]';
};
-
npx patch-package isarray
and thenCannot find module 'node:process'
-
if I
npm install yaml@2.2.2
,it's ok.
- if I change the node's version
nvm use v16.18.0
it is also ok;
look the node_modules/patch-package/package.json
, we can find that patch-package
dependences "yaml": "^2.2.2"
.
So I think the yaml@2.7.0
is not support the node 14.7.0
.Before you publish the tag 2.7.0
, it works well.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working