每次在node.js命令提示符下执行npm install ts-md5
命令时,我都会收到错误。我不知道锄头来解决这个问题。希望你能帮助我,提前谢谢这是错误:
C:\Users\Administrator>npm install ts-md5
C:\Users\Administrator
+-- UNMET PEER DEPENDENCY @angular/core@*
+-- UNMET PEER DEPENDENCY @ionic-native/core@^3.6.0 || >=4.0.0
+-- UNMET PEER DEPENDENCY rxjs@^5.0.1
`-- ts-md5@1.2.2
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Administrator\
package.json'
npm WARN @ionic-native/network@4.1.0 requires a peer of @ionic-native/core@^3.6.
0 || >=4.0.0 but none was installed.
npm WARN @ionic-native/network@4.1.0 requires a peer of @angular/core@* but none
was installed.
npm WARN @ionic-native/network@4.1.0 requires a peer of rxjs@^5.0.1 but none was
installed.
npm WARN Administrator No description
npm WARN Administrator No repository field.
npm WARN Administrator No README data
npm WARN Administrator No license field.
答案 0 :(得分:0)
似乎缺少package.json。
您只能在npm项目中使用:npm install
。
创建一个新文件夹并在其上执行npm init
并按照说明操作。