记录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 %

相关推荐
敲啊敲95273 小时前
5.npm包
前端·npm·node.js
蜜獾云17 小时前
npm淘宝镜像
前端·npm·node.js
dz88i817 小时前
修改npm镜像源
前端·npm·node.js
小王码农记1 天前
解决npm publish发布包后拉取时一直提示 Couldn‘t find any versions for “包名“ that matches “版本号“
前端·npm·node.js
樊南2 天前
npm安装electron依赖时卡顿,下载不下来
前端·electron·npm
没头发的卓卓3 天前
pnpm--他简直是超人!
前端·npm·前端工程化
changingshow4 天前
vue create 创建项目 提示 Failed to check for updates 淘宝 NPM 镜像站喊你切换新域名啦
javascript·vue.js·npm
【D'accumulation】4 天前
NPM国内镜像源多选择与镜像快速切换工具(nrm)介绍
前端·npm·node.js
野生派蒙4 天前
NVM:安装配置使用(详细教程)
前端·npm·node.js
Asurplus4 天前
【VUE】13、安装nrm管理多个npm源
npm·node.js·nvm·nrm