Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25026] Scons: Cannot build SDK with npm@5.3.0

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionDuplicate
Resolution Date2017-07-26T15:24:07.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterHans Knöchel
AssigneeEric Merriman
Created2017-07-26T11:53:48.000+0000
Updated2017-07-26T20:51:49.000+0000

Description

I just tried scons'ing master and received the following error:
Hans-Macbook-Pro:build hknoechel$ node scons.js cleanbuild ios
Building MobileSDK version 7.0.0, githash 74a87a2b83
Generating parity report...
Generating JSCA...
[INFO] Parsing YAML files in /Users/hknoechel/Documents/titanium_mobile/apidoc...
[INFO] Parsing YAML files in /Users/hknoechel/Documents/titanium_mobile/apidoc...
[INFO] Processing YAML data...
[INFO] Processing YAML data...
[INFO] Annotating JSCA-specific attributes...
[INFO] Generating PARITY output...
Generated output at ../dist/parity.html
[INFO] Generating JSCA output...
Generated output at /Users/hknoechel/Documents/titanium_mobile/dist/api.jsca
Zipping Mobile SDK...
Cleaning previous zipfile and tmp dir...
Writing manifest.json
Pruning to production npm dependencies

npm ERR! May not delete: /Users/hknoechel/Documents/titanium_mobile/dist/ziptmp/mobilesdk/osx/7.0.0/node_modules/.bin

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/hknoechel/.npm/_logs/2017-07-26T11_52_27_638Z-debug.log

{ Error: Command failed: npm prune --production
npm ERR! May not delete: /Users/hknoechel/Documents/titanium_mobile/dist/ziptmp/mobilesdk/osx/7.0.0/node_modules/.bin

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/hknoechel/.npm/_logs/2017-07-26T11_52_27_638Z-debug.log

    at ChildProcess.exithandler (child_process.js:270:12)
    at emitTwo (events.js:125:13)
    at ChildProcess.emit (events.js:213:7)
    at maybeClose (internal/child_process.js:921:16)
    at Socket.stream.socket.on (internal/child_process.js:348:11)
    at emitOne (events.js:115:13)
    at Socket.emit (events.js:210:7)
    at Pipe._handle.close [as _onclose] (net.js:549:12)
  killed: false,
  code: 1,
  signal: null,
  cmd: 'npm prune --production' }
Same happening for Jenkins and it's the reason all PR's against master currently fail. No big deal, but should be investigated :-).

Comments

  1. Ewan Harris 2017-07-26

    Known issue with npm@5.3.0, issue in their tracker here https://github.com/npm/npm/issues/17781. I guess we could enforce a certain npm version in the build scripts but honestly that seems more hassle than it's worth
  2. Hans Knöchel 2017-07-26

    Thanks Ewan! Using npm i -g npm@5.2 should solve it temporarily!
  3. Hans Knöchel 2017-07-26

    Duplicate of TIMOB-25028, works now!
  4. Lee Morris 2017-07-26

    Closing ticket as duplicate.

JSON Source