brix / crypto-js

JavaScript library of crypto standards.
Other
15.71k stars 2.38k forks source link

can't npm install #133

Open johnsnow20087349 opened 6 years ago

johnsnow20087349 commented 6 years ago

npm install error

os: win10 64bit js: angular4 + typescript crypto version: latest I can't install using npm install crypto-js crpto

then I download the zip, unzip it, move the directory to node_modules manually, change dir name from "crypto-js-develop" to "crypto-js", const CryptoJS = require("crypto-js"); but my nodejs compiler show error:

image

can't resolve it, any advice?

MattWilliamsDev commented 6 years ago

Looking at the error message, it appears your script is still looking for crypto-js-develop.

johnsnow20087349 commented 6 years ago

the 2nd picture was captured before I change the dir name to "crypto-js", I try npm install today, but still get this: crpto

johnsnow20087349 commented 6 years ago

if I lack some information you need, please contact me

silveryiris commented 6 years ago

Try npm i crypto-js@3.1.9-1 or npm i crypto-js@latest

You could upgrade the npm version to V5 if the cmd above failed.

Tested on node@9.2.0 and npm@5.5.1 , everything is fine.

johnsnow20087349 commented 6 years ago

this works, thanks my node -v: 6.9.5

ProteanDev commented 1 year ago

this is still broken with node v18

panic08 commented 1 year ago

npm i crypto-js@latest

can you suggest alternatives?