记录npm install moment安装失败

caiqingheng@localhost salary-wechat % npm install moment

npm WARN deprecated har-validator@5.1.5: this library is no longer supported

npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.

npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.

npm ERR! code 1

npm ERR! path /Users/caiqingheng/Documents/wechatCode/salary-wechat/node_modules/node-sass

npm ERR! command failed

npm ERR! command sh -c node scripts/build.js

npm ERR! Building: /usr/local/bin/node /Users/caiqingheng/Documents/wechatCode/salary-wechat/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=

npm ERR! gyp info it worked if it ends with ok

npm ERR! gyp verb cli [

npm ERR! gyp verb cli   '/usr/local/bin/node',

npm ERR! gyp verb cli   '/Users/caiqingheng/Documents/wechatCode/salary-wechat/node_modules/node-gyp/bin/node-gyp.js',

npm ERR! gyp verb cli   'rebuild',

npm ERR! gyp verb cli   '--verbose',

npm ERR! gyp verb cli   '--libsass_ext=',

npm ERR! gyp verb cli   '--libsass_cflags=',

npm ERR! gyp verb cli   '--libsass_ldflags=',

npm ERR! gyp verb cli   '--libsass_library='

npm ERR! gyp verb cli ]

npm ERR! gyp info using node-gyp@3.8.0

npm ERR! gyp info using node@16.15.0 | darwin | x64

npm ERR! gyp verb command rebuild []

npm ERR! gyp verb command clean []

npm ERR! gyp verb clean removing "build" directory

npm ERR! gyp verb command configure []

npm ERR! gyp verb check python checking for Python executable "/usr/bin/python3" in the PATH

npm ERR! gyp verb `which` succeeded /usr/bin/python3 /usr/bin/python3

npm ERR! gyp ERR! configure error

npm ERR! gyp ERR! stack Error: Command failed: /usr/bin/python3 -c import sys; print "%s.%s.%s" % sys.version_info[:3];

npm ERR! gyp ERR! stack   File "<string>", line 1

npm ERR! gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];

npm ERR! gyp ERR! stack                       ^

npm ERR! gyp ERR! stack SyntaxError: invalid syntax

npm ERR! gyp ERR! stack

npm ERR! gyp ERR! stack     at ChildProcess.exithandler (node:child_process:398:12)

npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:527:28)

npm ERR! gyp ERR! stack     at maybeClose (node:internal/child_process:1092:16)

npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)

npm ERR! gyp ERR! System Darwin 22.6.0

npm ERR! gyp ERR! command "/usr/local/bin/node" "/Users/caiqingheng/Documents/wechatCode/salary-wechat/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="

npm ERR! gyp ERR! cwd /Users/caiqingheng/Documents/wechatCode/salary-wechat/node_modules/node-sass

npm ERR! gyp ERR! node -v v16.15.0

npm ERR! gyp ERR! node-gyp -v v3.8.0

npm ERR! gyp ERR! not ok

npm ERR! Build failed with error code: 1

npm ERR! A complete log of this run can be found in:

npm ERR!     /Users/caiqingheng/.npm/_logs/2024-06-21T13_51_06_942Z-debug-0.log

caiqingheng@localhost salary-wechat % npm ERR! gyp

Unknown command: "ERR!"

To see a list of supported npm commands, run:

  npm help

caiqingheng@localhost salary-wechat % node-gyp -v

v10.1.0

caiqingheng@localhost salary-wechat % npm uninstall node-sass

added 92 packages, and audited 93 packages in 15s

12 packages are looking for funding

  run `npm fund` for details

found 0 vulnerabilities

caiqingheng@localhost salary-wechat % npm install sass --save-dev

added 18 packages, and audited 111 packages in 4s

15 packages are looking for funding

  run `npm fund` for details

found 0 vulnerabilities

caiqingheng@localhost salary-wechat % npm install

up to date, audited 111 packages in 1s

15 packages are looking for funding

  run `npm fund` for details

found 0 vulnerabilities

caiqingheng@localhost salary-wechat % clear

caiqingheng@localhost salary-wechat % ls

App.vue index.html package.json uni.promisify.adaptor.js

LICENSE main.js pages uni.scss

README.md manifest.json pages.json unpackage

common node_modules static uview-ui

components package-lock.json store

caiqingheng@localhost salary-wechat % npm install moment

added 1 package, and audited 112 packages in 2s

15 packages are looking for funding

  run `npm fund` for details

found 0 vulnerabilities

caiqingheng@localhost salary-wechat %

  • 25
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值