PiotrDabkowski / Js2Py

JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python🚀 Try it online:
http://piter.io/projects/js2py
MIT License
2.45k stars 259 forks source link

AssertionError: Could not link required node_modules #285

Open Jack-samu opened 2 years ago

Jack-samu commented 2 years ago

When I use the module to exchange the js library, it return this to me. `

import js2py encrypt = js2py.require('jsencrypt.min.js') v16.15.0 文件名、目录名或卷标语法不正确。 Traceback (most recent call last): File "", line 1, in File "D:\应用安装\Python38-32\lib\site-packages\js2py\node_import.py", line 155, in require py_code = _get_and_translate_npm_module(module_name, include_polyfill=include_polyfill, update=update, File "D:\应用安装\Python38-32\lib\site-packages\js2py\node_import.py", line 77, in _get_and_translate_npm_module _init() File "D:\应用安装\Python38-32\lib\site-packages\js2py\node_import.py", line 23, in _init assert subprocess.call( AssertionError: Could not link required node_modules

`

lolidkstudio commented 1 year ago

https://lightrun.com/answers/piotrdabkowski-js2py-js2pyrequirepaper--assertionerror-could-not-link-required-node_modules this might help