1602 / 1602/compound

npm install -g compound failed

Offen
#623 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
1.6k
Forks
179
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hello,

Please i need your help. the installation of compound has failed.

this is the error:

npm ERR! tar pack Error reading /root/tmp/npm-7973/1398331627018-0.5885293378960341/package
npm ERR! TypeError: Cannot call method 'filter' of undefined
npm ERR! at Packer.IgnoreReader.addIgnoreRules (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:148:13)
npm ERR! at Packer.IgnoreReader.addIgnoreFile (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:133:10)
npm ERR! at fs.readFile (fs.js:176:14)
npm ERR! at fs.close (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:92:5)
npm ERR! at Object.oncomplete (fs.js:297:15)
npm ERR! System Linux 3.2.0-4-686-pae
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "compound" "-g"
npm ERR! cwd /home/zbvb3786
npm ERR! node -v v0.8.9
npm ERR! npm -v 1.1.61
npm ERR! type non_object_property_call
npm ERR! addLocalDirectory Could not pack "/root/tmp/npm-7973/1398331627018-0.5885293378960341/package" to "/root/.npm/compound/1.1.13-1/package.tgz"
npm ERR! SyntaxError: Unexpected token {
npm ERR! at Object.parse (native)
npm ERR! at Packer.readRules (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/fstream-npm.js:189:33)
npm ERR! at Packer.IgnoreReader.addIgnoreFile (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:132:22)
npm ERR! at fs.readFile (fs.js:176:14)
npm ERR! at fs.close (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:92:5)
npm ERR! System Linux 3.2.0-4-686-pae
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "compound" "-g"
npm ERR! cwd /home/zbvb3786
npm ERR! node -v v0.8.9
npm ERR! npm -v 1.1.61
npm ERR! file /root/tmp/npm-7973/1398331627018-0.5885293378960341/package/templates/package.json
npm ERR! path /root/tmp/npm-7973/1398331627018-0.5885293378960341/package/templates
npm ERR! type unexpected_token
npm ERR! fstream_path /root/tmp/npm-7973/1398331627018-0.5885293378960341/package/templates
npm ERR! fstream_type Directory
npm ERR! fstream_class Packer
npm ERR! fstream_stack Packer.readRules (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/fstream-npm.js:192:10)
npm ERR! fstream_stack Packer.IgnoreReader.addIgnoreFile (/usr/local/lib/node_modules/npm/node_modules/fstream-npm/node_modules/fstream-ignore/ignore.js:132:22)
npm ERR! fstream_stack fs.readFile (fs.js:176:14)
npm ERR! fstream_stack fs.close (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:92:5)
npm ERR! fstream_stack Object.oncomplete (fs.js:297:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/zbvb3786/npm-debug.log
npm ERR! not ok code 0

Thank you,

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

The error indicates a problem with npm's fstream-npm module parsing a package.json file in the templates directory. Start by examining the compound package's templates/package.json for JSON syntax errors. The issue is old, so first verify if the problem persists with modern Node.js and npm versions. Check the project's build and packaging scripts to understand how the template is included.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript, nodejs
Bereich
cli, tooling
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.