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

相关推荐
RAY_CHEN.10 分钟前
vue3 pinia 中actions修改状态不生效
vue.js·typescript·npm
Ztiddler21 小时前
【npm设置代理-解决npm网络连接error network失败问题】
前端·后端·npm·node.js·vue
三天不学习1 天前
前端工程化-node/npm/babel/polyfill/webpack 一文速通
前端·webpack·npm
水w2 天前
Node.js windows版本 下载和安装(详细步骤)
开发语言·前端·windows·npm·node
guokanglun2 天前
npm镜像查看和修改
前端·npm·node.js
你的代码我的心2 天前
解决 npm xxx was blocked, reason: xx bad guy, steal env and delete files
npm
明天最后2 天前
由于Two-Factor Authentication导致github发布npm包失败
前端·npm·github
平芜尽处是春山-3 天前
vue3项目执行npm install下载依赖报错问题排查方法
前端·npm·node.js
Micheal_Wayne4 天前
“无关紧要”的小知识点:“xx Packages Are Looking for Funding”——npm fund命令及运行机制
前端·npm·node.js
Anjgst4 天前
淘宝 NPM 镜像源
前端·npm·node.js