如果使用npm 命令安装了‘crypto-js’ 但是npm list显示没有的话 Cannot find module ‘crypto-js’——python调用crypto-js报错情况下

如果使用npm 命令安装了crypto-js 但是npm list显示没有的话 ,可使用命令行代码如下:

npm install -g cnpm --registry=https://registry.npm.taobao.org

 这是下载命令

cnpm install crypto-js

同时如果python无法调用crypto-js时 ,把下载下来的crypto-js文件夹复制到node_modules目录下 全局和本地都得有

你可能感兴趣的:(javascript,开发语言,ecmascript)