ng2-3d-editor
ng2-3d-editor copied to clipboard
npm install fails
I see on line 28 THREE.FBXLoader is being assigned, yet it does not like it. I am still learning typescript so I do not know what is happening.
[02:23:13] Requiring external module ts-node/register [02:23:14] Using gulpfile ~/ng2-3d-editor/gulpfile.ts [02:23:14] Starting 'build.prod'... [02:23:14] Starting 'build.assets.prod'... [02:23:14] Finished 'build.assets.prod' after 85 ms [02:23:14] Starting 'build.html_css'... [02:23:14] Finished 'build.html_css' after 133 ms [02:23:14] Starting 'build.js.prod'... src/jsservice/fbxLoader2.service.ts(28,11): error TS2339: Property 'FBXLoader' does not exist on type 'typeof THREE'. src/jsservice/fbxLoader2.service.ts(37,26): error TS2339: Property 'FBXLoader' does not exist on type 'typeof THREE'. src/jsservice/fbxLoader2.service.ts(39,11): error TS2339: Property 'FBXLoader' does not exist on type 'typeof THREE'. src/jsservice/fbxLoader2.service.ts(39,51): error TS2339: Property 'FBXLoader' does not exist on type 'typeof THREE'. src/jsservice/fbxLoader2.service.ts(41,26): error TS2339: Property 'FBXLoader' does not exist on type 'typeof THREE'. src/jsservice/fbxLoader2.service.ts(714,37): error TS2339: Property 'FBX_Deformer' does not exist on type 'BufferGeometry'. src/jsservice/fbxLoader2.service.ts(939,36): error TS2339: Property 'NURBSCurve' does not exist on type 'typeof THREE'. src/jsservice/fbxLoader2.service.ts(971,47): error TS2339: Property 'NURBSCurve' does not exist on type 'typeof THREE'. src/jsservice/fbxLoader2.service.ts(1030,41): error TS2346: Supplied parameters do not match any signature of call target. src/jsservice/fbxLoader2.service.ts(1306,28): error TS2339: Property 'skeleton' does not exist on type 'Group'. src/jsservice/fbxLoader2.service.ts(2800,44): error TS2346: Supplied parameters do not match any signature of call target. src/jsservice/mtlLoader.service.ts(8,7): error TS2339: Property 'MTLLoader' does not exist on type 'typeof THREE'. src/jsservice/mtlLoader.service.ts(14,21): error TS2339: Property 'MTLLoader' does not exist on type 'typeof THREE'. src/jsservice/mtlLoader.service.ts(161,41): error TS2339: Property 'MTLLoader' does not exist on type 'typeof THREE'. src/jsservice/mtlLoader.service.ts(186,7): error TS2339: Property 'MTLLoader' does not exist on type 'typeof THREE'. src/jsservice/mtlLoader.service.ts(200,7): error TS2339: Property 'MTLLoader' does not exist on type 'typeof THREE'. src/jsservice/mtlLoader.service.ts(202,24): error TS2339: Property 'MTLLoader' does not exist on type 'typeof THREE'. src/jsservice/mtlLoader.service.ts(521,13): error TS2322: Type 'TextureLoader' is not assignable to type 'Loader'. Property 'onLoadStart' is missing in type 'TextureLoader'. src/jsservice/mtlLoader.service.ts(525,20): error TS2339: Property 'setCrossOrigin' does not exist on type 'Loader'. src/jsservice/mtlLoader.service.ts(525,43): error TS2339: Property 'setCrossOrigin' does not exist on type 'Loader'. src/jsservice/mtlLoader.service.ts(526,26): error TS2339: Property 'load' does not exist on type 'Loader'. src/jsservice/objLoader.service.ts(6,7): error TS2339: Property 'OBJLoader' does not exist on type 'typeof THREE'. src/jsservice/objLoader.service.ts(39,7): error TS2339: Property 'OBJLoader' does not exist on type 'typeof THREE'. src/jsservice/objLoader.service.ts(41,24): error TS2339: Property 'OBJLoader' does not exist on type 'typeof THREE'. src/jsservice/objLoader.service.ts(641,19): error TS2339: Property 'materialLibraries' does not exist on type 'Group'. src/jsservice/objLoader.service.ts(724,123): error TS2345: Argument of type 'MultiMaterial' is not assignable to parameter of type 'LineBasicMaterial | LineDashedMaterial | ShaderMaterial'. Type 'MultiMaterial' is not assignable to type 'ShaderMaterial'. Property 'defines' is missing in type 'MultiMaterial'. [02:23:16] TypeScript: 26 semantic errors [02:23:16] TypeScript: emit succeeded (with errors)
npm ERR! Linux 4.4.0-72-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build.umd"
npm ERR! node v7.8.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build.umd: gulp build.prod --color --env-config prod --build-type prod
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build.umd script 'gulp build.prod --color --env-config prod --build-type prod'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ng2-3d-editor package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! gulp build.prod --color --env-config prod --build-type prod
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ng2-3d-editor
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ng2-3d-editor
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /home/ubuntu/.npm/_logs/2017-04-18T02_23_16_029Z-debug.log
npm ERR! Linux 4.4.0-72-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build"
npm ERR! node v7.8.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: npm run clean-build && npm run tslint && rimraf dist && tsc && npm run build.umd
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script 'npm run clean-build && npm run tslint && rimraf dist && tsc && npm run build.umd'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ng2-3d-editor package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run clean-build && npm run tslint && rimraf dist && tsc && npm run build.umd
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ng2-3d-editor
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ng2-3d-editor
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /home/ubuntu/.npm/_logs/2017-04-18T02_23_16_042Z-debug.log
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Linux 4.4.0-72-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v7.8.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] prepublish: npm run build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] prepublish script 'npm run build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ng2-3d-editor package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ng2-3d-editor
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ng2-3d-editor
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! /home/ubuntu/.npm/_logs/2017-04-18T02_23_16_069Z-debug.log ubuntu@angular:~/ng2-3d-editor$
I am having the same issue, were you able to fix it?
can you try try to install:
npm install --save @types/three
Thanks for getting back quickly,
Here is what I got:
C:\ng2-3d-editor>npm -v 4.6.1
C:\ng2-3d-editor>node -v v6.10.3
C:\ng2-3d-editor>npm install --save @types/three [email protected] C:\ng2-3d-editor
-- @types/[email protected]
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (cu rrent: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\wsrv\node_modules\chokidar\node_modules\fsevents ): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (cu rrent: {"os":"win32","arch":"x64"})
C:\ng2-3d-editor>npm run build
[email protected] build C:\ng2-3d-editor npm run clean-build && npm run tslint && rimraf dist && tsc && npm run build.umd
[email protected] clean-build C:\ng2-3d-editor rimraf index.js index.js.map index.d.ts'src/{,/}.js' 'src/{,/}.js.map' 'src/{,/}.d.ts' bundles
[email protected] tslint C:\ng2-3d-editor tslint -c tslint.json 'src/{,/}.ts' 'index.ts' -e '{,/}.d.ts' -e './gulpfile.ts' -e 'src/jsservice/{,/}.ts'
[email protected] build.umd C:\ng2-3d-editor gulp build.prod --color --env-config prod --build-type prod
[08:53:33] Requiring external module ts-node/register
[08:53:36] Using gulpfile ~\Documents\ng2-3d-editor\gulpfile.ts
[08:53:36] Starting 'build.prod'...
[08:53:36] Starting 'build.assets.prod'...
[08:53:36] Finished 'build.assets.prod' after 53 ms
[08:53:36] Starting 'build.html_css'...
[08:53:36] Finished 'build.html_css' after 431 ms
[08:53:36] Starting 'build.js.prod'...
src\jsservice\fbxLoader2.service.ts(28,11): error TS2339: Property 'FBXLoader' does not exist on type 'typeof THREE'.
src\jsservice\fbxLoader2.service.ts(37,26): error TS2339: Property 'FBXLoader' does not exist on type 'typeof THREE'.
src\jsservice\fbxLoader2.service.ts(39,11): error TS2339: Property 'FBXLoader' does not exist on type 'typeof THREE'.
src\jsservice\fbxLoader2.service.ts(39,51): error TS2339: Property 'FBXLoader' does not exist on type 'typeof THREE'.
src\jsservice\fbxLoader2.service.ts(41,26): error TS2339: Property 'FBXLoader' does not exist on type 'typeof THREE'.
src\jsservice\fbxLoader2.service.ts(714,37): error TS2339: Property 'FBX_Deformer' does not exist on type 'BufferGeometry'.
src\jsservice\fbxLoader2.service.ts(939,36): error TS2339: Property 'NURBSCurve' does not exist on type 'typeof THREE'.
src\jsservice\fbxLoader2.service.ts(971,47): error TS2339: Property 'NURBSCurve' does not exist on type 'typeof THREE'.
src\jsservice\fbxLoader2.service.ts(1030,41): error TS2346: Supplied parameters do not match any signature of call target.
src\jsservice\fbxLoader2.service.ts(1306,28): error TS2339: Property 'skeleton' does not exist on type 'Group'.
src\jsservice\fbxLoader2.service.ts(2800,44): error TS2346: Supplied parameters do not match any signature of call target.
src\jsservice\mtlLoader.service.ts(8,7): error TS2339: Property 'MTLLoader' does not exist on type 'typeof THREE'.
src\jsservice\mtlLoader.service.ts(14,21): error TS2339: Property 'MTLLoader' does not exist on type 'typeof THREE'.
src\jsservice\mtlLoader.service.ts(161,41): error TS2339: Property 'MTLLoader' does not exist on type 'typeof THREE'.
src\jsservice\mtlLoader.service.ts(186,7): error TS2339: Property 'MTLLoader' does not exist on type 'typeof THREE'.
src\jsservice\mtlLoader.service.ts(200,7): error TS2339: Property 'MTLLoader' does not exist on type 'typeof THREE'.
src\jsservice\mtlLoader.service.ts(202,24): error TS2339: Property 'MTLLoader' does not exist on type 'typeof THREE'.
src\jsservice\mtlLoader.service.ts(521,13): error TS2322: Type 'TextureLoader' is not assignable to type 'Loader'.
Property 'onLoadStart' is missing in type 'TextureLoader'.
src\jsservice\mtlLoader.service.ts(525,20): error TS2339: Property 'setCrossOrigin' does not exist on type 'Loader'.
src\jsservice\mtlLoader.service.ts(525,43): error TS2339: Property 'setCrossOrigin' does not exist on type 'Loader'.
src\jsservice\mtlLoader.service.ts(526,26): error TS2339: Property 'load' does not exist on type 'Loader'.
src\jsservice\objLoader.service.ts(40,7): error TS2339: Property 'OBJLoader' does not exist on type 'typeof THREE'.
src\jsservice\objLoader.service.ts(42,24): error TS2339: Property 'OBJLoader' does not exist on type 'typeof THREE'.
src\jsservice\objLoader.service.ts(642,19): error TS2339: Property 'materialLibraries' does not exist on type 'Group'.
src\jsservice\objLoader.service.ts(725,123): error TS2345: Argument of type 'MultiMaterial' is not assignable to parameter of
type 'LineBasicMaterial | LineDashedMaterial | ShaderMaterial'.
Type 'MultiMaterial' is not assignable to type 'ShaderMaterial'.
Property 'defines' is missing in type 'MultiMaterial'.
[08:53:38] TypeScript: 25 semantic errors
[08:53:38] TypeScript: emit succeeded (with errors)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build.umd: gulp build.prod --color --env-config prod --build-type prod
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build.umd 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\oo605\AppData\Roaming\npm-cache_logs\2017-05-31T12_53_39_015Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: npm run clean-build && npm run tslint && rimraf dist && tsc && npm run build.umd
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build 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\oo605\AppData\Roaming\npm-cache_logs\2017-05-31T12_53_39_062Z-debug.log
C:\ng2-3d-editor> `