macbook npm install失败问题的解决方法

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

在macbook下执行npm install出错

错误日志

10099 warn [email protected] No repository field.
10100 warn optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/core-js):
10101 warn enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, utime '/Users/zchuanzhao/develop/intellijidea/jeesns-manage/node_modules/.staging/core-js-a43a4083/modules/_wks.js'
10102 verbose enoent SKIPPING OPTIONAL DEPENDENCY: This is related to npm not being able to find a file.
10102 verbose enoent SKIPPING OPTIONAL DEPENDENCY:
10103 verbose stack Error: sha1-hilUyLWBC/+HpIsN4EFu2MS7HDY= integrity checksum failed when using sha1: wanted sha1-hilUyLWBC/+HpIsN4EFu2MS7HDY= but got sha1-NxT0cZS74krCf2dWtud9SfoS8Bk=. (122965 bytes)
10103 verbose stack     at Transform.on (/usr/local/lib/node_modules/npm/node_modules/ssri/index.js:278:19)
10103 verbose stack     at emitNone (events.js:110:20)
10103 verbose stack     at Transform.emit (events.js:207:7)
10103 verbose stack     at endReadableNT (_stream_readable.js:1047:12)
10103 verbose stack     at _combinedTickCallback (internal/process/next_tick.js:102:11)
10103 verbose stack     at process._tickCallback (internal/process/next_tick.js:161:9)
10104 verbose cwd /Users/zchuanzhao/develop/intellijidea/jeesns-manage
10105 verbose Darwin 16.6.0
10106 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
10107 verbose node v8.1.2
10108 verbose npm  v5.0.3
10109 error code EINTEGRITY
10110 error sha1-hilUyLWBC/+HpIsN4EFu2MS7HDY= integrity checksum failed when using sha1: wanted sha1-hilUyLWBC/+HpIsN4EFu2MS7HDY= but got sha1-NxT0cZS74krCf2dWtud9SfoS8Bk=. (122965 bytes)
10111 verbose exit [ 1, true ]

解决办法

jeesns-manage zchuanzhao$ sudo npm install -g ios-deploy --unsafe-perm=true

转载于:https://my.oschina.net/zchuanzhao/blog/983327

你可能感兴趣的:(macbook npm install失败问题的解决方法)