puppet-xp icon indicating copy to clipboard operation
puppet-xp copied to clipboard

node: --experimental-loader requires --experimental-modules be enabled

Open Lny-nice opened this issue 4 years ago • 7 comments

[email protected] start G:\php_dnmp\www\wechaty-puppet-xp

cross-env NODE_OPTIONS="--no-warnings --loader=ts-node/esm" node examples/ding-dong-bot.ts

node: --experimental-loader requires --experimental-modules be enabled npm ERR! code ELIFECYCLE npm ERR! errno 9 npm ERR! [email protected] start: cross-env NODE_OPTIONS="--no-warnings --loader=ts-node/esm" node examples/ding-dong-bot.ts npm ERR! Exit status 9 npm ERR! npm ERR! Failed at the [email protected] start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Lny-nice avatar Sep 17 '21 02:09 Lny-nice

Try to install the latest version

npm install wehaty-puppet-xp@next

atorber avatar Sep 17 '21 02:09 atorber

image

Lny-nice avatar Sep 17 '21 03:09 Lny-nice

Sorry,The correct instruction is:

npm install wechaty-puppet-xp@next

atorber avatar Sep 17 '21 03:09 atorber

It seems that your Node.js version is below 14.

Please upgrade Node.js to 16 to fix your issue.

Link to

  • https://github.com/wechaty/wechaty.js.org/issues/1295

TL;DR:

Update your Node.js to 16+

huan avatar Sep 17 '21 03:09 huan

image

Lny-nice avatar Sep 18 '21 03:09 Lny-nice

  1. Error: Could not locate the binding file. Tried: node_modules/frida/build/frida_binding.node Easy solution: use a server outside of China to get an unblocked network connection. Hard solution: download frida_binding.node from https://github.com/frida/frida/releases/ manually, then put it into node_modules/frida/build folder. Explanation:

frida is using prebuild-install to install binary files from GitHub Release.

If your server has any trouble with visiting the Amazon S3 servers (which is all the GitHub release artifacts are hosted on), then your NPM install will fail to download the binary files (frida_binding.node in our case). @Lny-nice Look at the content above, it will help

atorber avatar Oct 08 '21 03:10 atorber

如果微信多开了会咋样

Lny-nice avatar Oct 08 '21 09:10 Lny-nice