[wp-trac] [WordPress Trac] #62839: sync-gutenberg-packages script is not respecting .npmrc file
WordPress Trac
noreply at wordpress.org
Wed Jul 2 22:56:28 UTC 2025
#62839: sync-gutenberg-packages script is not respecting .npmrc file
-------------------------------------------------+-------------------------
Reporter: desrosj | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.9
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch has-test-info changes- | Focuses:
requested |
-------------------------------------------------+-------------------------
Changes (by SirLouen):
* keywords: has-patch has-test-info => has-patch has-test-info changes-
requested
Comment:
== Reproduction Report
=== Description
✅ This report validates that the issue can be reproduced.
=== Environment
- WordPress: 6.7-src
- PHP: 8.2.28
- Server: nginx/1.29.0
- Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
- Browser: Chrome 138.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Five 1.2
- MU Plugins: None activated
- Plugins:
* Test Reports 1.2.0
=== Actual Results
1. ✅ Error condition occurs
=== Additional Notes
Followed [https://core.trac.wordpress.org/ticket/62839#comment:10 the
steps with 6.7 branch]
During `npm run sync-gutenberg-packages -- --dist-tag=wp-6.8` the error is
still there as expected
{{{
tools/release/sync-gutenberg-packages.js:110
const versionConflicts = Object.entries( packageLock.dependencies
)
TypeError: Cannot convert undefined or null to object
at Function.entries (<anonymous>)
at getMismatchedNonWordPressDependencies (/home/user/src/wordpress
/wordpress-develop/tools/release/sync-gutenberg-packages.js:110:34)
at main (/home/user/src/wordpress/wordpress-develop/tools/release
/sync-gutenberg-packages.js:36:28)
at Object.<anonymous> (/home/user/src/wordpress/wordpress-
develop/tools/release/sync-gutenberg-packages.js:225:1)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at Function.executeUserEntryPoint [as runMain]
(node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49
}}}
But what has changed is that the execution ended in a warning I can't
remember in my previous run:
{{{
Running "verify:source-maps" task
Warning: The build/wp-includes/js/dist/data.js file must not contain a
sourceMappingURL. Use --force to continue.
Aborted due to warnings
}}}
So I run with `npm run sync-gutenberg-packages --force -- --dist-
tag=wp-6.8` and still fails with the same warning 🤔 (I also removed the
build/ dir before doing this to double check if there could be a conflict
for some reason)
Anyway I ignored this, and I went for the `postsync` and finally again the
`dedupe`
I can confirm there are dupes but only 2:
1. pify
2. make-dir
In fact, in the first dedupe run, I can't really see any dupes.
Maybe the problem is specifically related to those two packages that are
somehow messing around? @desrosj have you found more dupes that these two?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62839#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list