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

相关推荐
原机小子5 小时前
驾驭npm更新之力:深入掌握npm update命令的精髓
前端·npm·node.js
小蜜蜂vs码农5 小时前
解决 npm intasll 安装报错 Error: EPERM: operation not permitted
前端·npm·node.js
Trouble-Solver9 小时前
npm常用的命令
前端·npm·node.js
Gemini199515 小时前
postman接口测试工具详解
npm·postman
coolkidlan16 小时前
npm常用命令
npm
花花鱼17 小时前
npm创建一个空的vue3项目的方法或者pnpm创建vue3项目
前端·npm·node.js
flytam17 小时前
TypeScript Project References npm 包小实践
前端·typescript·npm
h_and_g18 小时前
Jenkins 下使用 Node 和 Npm(借助 nvm-wrapper 插件)构建前端程序
前端·npm·jenkins
FLK_90901 天前
深入浅出:npm常用命令详解与实践
前端·npm·node.js
杨哥带你写代码1 天前
锁定依赖的秘诀:npm shrinkwrap命令深度解析
前端·npm·node.js