cypress: "Most NODE_OPTIONs are not supported in packaged apps" when running cypress component testing
Current behavior
When I run npm run cypress:open-ct (or run-ct), I get an error [43901:1203/085557.424470:ERROR:node_bindings.cc(276)] Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details.
This might be an Electron issue and it doesn’t seem to affect behaviour for us.
Desired behavior
No error to be thrown
Test code to reproduce
Run the Cypress component tester
Cypress Version
9.1.0
Other
MacOS 11.6 Node v16.0.0
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 17
- Comments: 32 (5 by maintainers)
I am using yarn pnp … encounter this issue
Same here.
Cypress 9.2.1 Mac M1 latest
It seems to have affected cypress testing only on first open after clean install for me.
Same for me.
Cypress Version
Other
Running under VSCode.
FYI
NODE_OPTIONSis set by Yarn to add the PnP module loader to Node when you useyarn exec, so if you’re using Yarn PnP you probably shouldn’t unset it. Even if you’re not using PnP it’s probably worth checking what value it’s set to 🤷🏻The error doesn’t seem to affect the test run. But to get rid of it anyway, for me it helped just to unset the environment variable before running cypress.
unset NODE_OPTIONSFWIW, I’m using cypress 8.6.0 on an Intel Mac.
From my limited experience it doesn’t seem to affect Cypress testing.
I also see this on latest
Still happening with the latest version.
@AStoker
Hello
I have similar issue with running nodemon as debug configuration for VS code on Windows10 for Node.js by using .vscode/launch.json:
In my case:
"runtimeExecutable": "${workspaceFolder}/node_modules/nodemon/bin/nodemon.js", to"runtimeExecutable": "nodemon",Command line changed from: 😒{env:NODE_OPTIONS}=‘–require “c:/Users/38098/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/ms-vscode.js-debug/src/bootloader.js” --inspect-publish-uid=http’; ${env:VSCODE_INSPECTOR_OPTIONS}=‘{“inspectorIpc”:“\\.\pipe\node-cdp.18452-04647856-1.sock”,“deferredMode”:false,“waitForDebugger”:“”,“execPath”:“C:\Program Files\nodejs\node.exe”,“onlyEntrypoint”:false,“autoAttachMode”:“always”,“fileCallback”:“C:\Users\38098\AppData\Local\Temp\node-debug-callback-5477a4347fa4ae67”}’; & ‘D:\projects\4-nodejs-demo-3/node_modules/nodemon/bin/nodemon.js’
to: ${env:NODE_OPTIONS}=‘–require “c:/Users/38098/AppData/Local/Programs/Microsoft VS Code/resources/app/extensions/ms-vscode.js-debug/src/bootloader.js” --inspect-publish-uid=http’; ${env:VSCODE_INSPECTOR_OPTIONS}=‘{“inspectorIpc”:“\\.\pipe\node-cdp.7668-3e75cba0-11.sock”,“deferredMode”:false,“waitForDebugger”:“”,“execPath”:“C:\Program Files\nodejs\node.exe”,“onlyEntrypoint”:false,“autoAttachMode”:“always”,“fileCallback”:“C:\Users\38098\AppData\Local\Temp\node-debug-callback-03f1f420e5a7512e”}’; & ‘C:\Users\38098\AppData\Roaming\npm\nodemon.cmd’
And it starts to work.
This worked for me.
I had the same warning
revert to cypress 9.2.0 seem to solve this,
npm install cypress@9.2.0