Unable to install on Win10

46 views
Skip to first unread message

steve.r...@gmail.com

unread,
Jul 20, 2020, 11:17:46 AM7/20/20
to TerriaJS
I'm following the install instructions and am getting an error. I am using Git Bash on Win10. Any help is appreciated!

Steve

$ npm install

> cor...@2.6.11 postinstall C:\Users\Owner\TerriaMap\node_modules\babel-runtime\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> terr...@7.11.5 postinstall C:\Users\Owner\TerriaMap\node_modules\terriajs
> gulp post-npm-install

[09:08:28] Using gulpfile ~\TerriaMap\node_modules\terriajs\gulpfile.js
[09:08:28] Starting 'post-npm-install'...
[09:08:28] Starting 'copy-cesium-assets'...
[09:08:28] 'copy-cesium-assets' errored after 2.57 ms
[09:08:28] Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in C:\Users\Owner\TerriaMap\node_modules\terriajs-cesium\package.json
    at applyExports (internal/modules/cjs/loader.js:491:9)
    at resolveExports (internal/modules/cjs/loader.js:507:23)
    at Function.Module._findPath (internal/modules/cjs/loader.js:635:31)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:953:27)
    at Function.resolve (internal/modules/cjs/helpers.js:78:19)
    at C:\Users\Owner\TerriaMap\node_modules\terriajs\gulpfile.js:78:33
    at copy-cesium-assets (C:\Users\Owner\TerriaMap\node_modules\undertaker\lib\set-task.js:13:15)
    at bound (domain.js:426:14)
    at runBound (domain.js:439:12)
    at asyncRunner (C:\Users\Owner\TerriaMap\node_modules\async-done\index.js:55:18)
[09:08:28] 'post-npm-install' errored after 5.42 ms
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsev...@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsev...@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! terr...@7.11.5 postinstall: `gulp post-npm-install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the terr...@7.11.5 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!     C:\Users\Owner\AppData\Roaming\npm-cache\_logs\2020-07-20T15_08_31_967Z-debug.log

The end of the log file indicates:
3540 silly saveTree     `-- came...@4.1.0
3541 warn optional SKIPPING OPTIONAL DEPENDENCY: fsev...@1.2.9 (node_modules\fsevents):
3542 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsev...@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
3543 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
3543 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
3543 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   win32
3543 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
3544 verbose stack Error: terr...@7.11.5 postinstall: `gulp post-npm-install`
3544 verbose stack Exit status 1
3544 verbose stack     at EventEmitter.<anonymous> (C:\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
3544 verbose stack     at EventEmitter.emit (events.js:315:20)
3544 verbose stack     at ChildProcess.<anonymous> (C:\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
3544 verbose stack     at ChildProcess.emit (events.js:315:20)
3544 verbose stack     at maybeClose (internal/child_process.js:1021:16)
3544 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
3545 verbose pkgid terr...@7.11.5
3546 verbose cwd C:\Users\Owner\TerriaMap
3547 verbose Windows_NT 10.0.18363
3548 verbose argv "C:\\nodejs\\node.exe" "C:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
3549 verbose node v12.18.0
3550 verbose npm  v6.14.4
3551 error code ELIFECYCLE
3552 error errno 1
3553 error terr...@7.11.5 postinstall: `gulp post-npm-install`
3553 error Exit status 1
3554 error Failed at the terr...@7.11.5 postinstall script.
3554 error This is probably not a problem with npm. There is likely additional logging output above.
3555 verbose exit [ 1, true ]

yash soni

unread,
Jul 24, 2020, 2:23:03 AM7/24/20
to TerriaJS
 i am using windows 10 and facing the same issue. did you find any solution yet @steve?

steve.r...@gmail.com

unread,
Jul 24, 2020, 10:53:36 AM7/24/20
to TerriaJS
No, I haven't been able to find a solution yet, so I am hoping those more knowledgeable with TerriaMap can help. Thanks for replying, makes me feel better that it's not just something I am doing wrong. If you find a solution, please let me know, and I'll do the same.

Stephen Davies

unread,
Aug 5, 2020, 11:56:58 AM8/5/20
to TerriaJS
This is a known problem with building Terria on later releases of node v12 and any version of node v14+ (and presumably v13 too, however I advise against running an odd numbered node version unless necessary as they are not LTS releases).
I have made this PR to solve the issue https://github.com/TerriaJS/cesium/pull/73 and an issue to track the progress of making this change available to users https://github.com/TerriaJS/terriajs/issues/4617.

Stephen
TerriaJS team
Reply all
Reply to author
Forward
0 new messages