Verstopft mit Express npm Installation

Fehler beim Ausführen des folgenden Befehls

npm install express ejs --save

Voller ERR. .. Ich habe gegen diesen Typen gekämpft, damit ich ein Memorandum hinterlassen kann.

Es wird eine ganze Weile dauern. .. Ich bin mir sicher, dass es irgendwie so sein wird, also lasst uns gemeinsam unser Bestes geben ...!

Das Folgende ist der Fehlerinhalt


···Kürzung
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.

No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

gyp: No Xcode or CLT version detected!
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/---/Downloads/weblog/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command "/usr/local/bin/node" "/Users/---/Downloads/weblog/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/--- ---./Downloads/weblog/node_modules/node-sass
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
Build failed with error code: 1
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/--- ---./.npm/_logs/2020-10-03T04_46_42_180Z-debug.log

Ich war hier interessiert

gyp: No Xcode or CLT version detected!

Ich habe xcode noch nie installiert ...!

Gugu hat den folgenden Artikel gefunden! http://pokuwagata.hatenablog.com/entry/2018/11/04/210256

Laden Sie direkt von der offiziellen Website herunter https://apps.apple.com/jp/app/xcode/id497799835?mt=12

Es benötigt viel Zeit. ..

Einmal installiert, https://qiita.com/royroy/items/338362362de73a94fc0c Laden Sie das Befehlszeilentool gemäß diesem Artikel herunter

Kann ich damit gehen! Versuchen Sie es nochmal

npm install express ejs --save
code-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Traceback (most recent call last):
  File "/Users/---/Downloads/weblog/node_modules/node-gyp/gyp/gyp_main.py", line 16, in <module>
    sys.exit(gyp.script_main())
  File "/Users/---/Downloads/weblog/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 545, in script_main
    return main(sys.argv[1:])
  File "/Users/---/Downloads/weblog/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 538, in main
    return gyp_main(args)
  File "/Users/---/Downloads/weblog/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 523, in gyp_main
    generator.GenerateOutput(flat_list, targets, data, params)
  File "/Users/---/Downloads/weblog/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 2170, in GenerateOutput
    part_of_all=qualified_target in needed_targets)
  File "/Users/---/Downloads/weblog/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 795, in Write
    self.Pchify))
  File "/Users/---/Downloads/weblog/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 1190, in WriteSources
    cflags = self.xcode_settings.GetCflags(configname)
  File "/Users/---/Downloads/weblog/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 551, in GetCflags
    archs = self.GetActiveArchs(self.configname)
  File "/Users/---/Downloads/weblog/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 420, in GetActiveArchs
    xcode_archs_default = GetXcodeArchsDefault()
  File "/Users/---/Downloads/weblog/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 118, in GetXcodeArchsDefault
    xcode_version, _ = XcodeVersion()
  File "/Users/---/Downloads/weblog/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 1265, in XcodeVersion
    version = re.match(r'(\d\.\d\.?\d*)', version).groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups'
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/Users/---/Downloads/weblog/node_modules/node-gyp/lib/configure.js:336:16)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command "/usr/local/bin/node" "/Users/---/Downloads/weblog/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/---/Downloads/weblog/node_modules/node-sass
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
Build failed with error code: 1
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/---/.npm/_logs/2020-10-03T05_34_18_908Z-debug.log

Dieser Artikel hat mir zuletzt geholfen! https://qiita.com/eytyet/items/59c5bad1c167d5addc68

Danach habe ich es erneut ausgeführt und erfolgreich installiert! !!

Recommended Posts

Verstopft mit Express npm Installation
Installieren Sie das Paket mit npm install / yarn add
Installieren Sie Java mit Homebrew
Über npm install --save
Installieren Sie Java mit Ansible
Installieren Sie OpenJDK 8 mit RPM
Installieren Sie Gradle auf ubuntu16.04
Netzwerkinstallation CentOS 8 mit Kickstart.
Installieren Sie Java 7 mit Homebrew (Fass)
[Rails] Polymorph mit graphql-rubin ausdrücken
Installieren Sie Oracle JDK 8 mit Ansible
Installieren Sie Ruby mit pacman auf MSYS2
Installieren Sie Amazon Corretto JDK mit SDKMAN!
Installieren Sie Java mit Ubuntu 16.04 Docker
Installieren Sie Java und Tomcat mit Ansible
Führen Sie nginx + express mit fargate 4 core aus
Ich kann Lombok nicht mit Gradle installieren.
mysql2 kann mit der Bundle-Installation nicht installiert werden
Installieren Sie Ruby unter Ubuntu 20.04 mit rbenv
Mit CodeDeploy endet die Installation nicht endlos