Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erros during Build Process #9467

Closed
ManChrys opened this issue Apr 6, 2021 · 7 comments
Closed

Erros during Build Process #9467

ManChrys opened this issue Apr 6, 2021 · 7 comments

Comments

@ManChrys
Copy link

ManChrys commented Apr 6, 2021

Hello guys,

i git clone the repo and after that i tried to build it, but i had some errors. More specifically :

1)git clone repo
2)cd to repo's folder
3)run npm install

Screenshot from 2021-04-06 12-49-04

Log file

2021-04-06T09_41_42_038Z-debug.log

EDIT

after i install rollup ( npm install --global rollup ) and run npm install --legacy-peer-deps

i had the following Warnings

Screenshot from 2021-04-06 14-52-46

If someone can help me i'll appreciate it.

Thanks in advance.

@ManChrys ManChrys changed the title Erros in Installation Process Erros during Installation Process Apr 6, 2021
@ManChrys ManChrys changed the title Erros during Installation Process Erros during Build Process Apr 6, 2021
@bampakoa
Copy link
Contributor

bampakoa commented Apr 6, 2021

@ManChrys warnings in the second screenshot are not something that you should be aware of. It may be from another package down the dependency tree that is used from Cesium.

However, the first error that you got is a bit strange because cesium does not require rollup to be globally installed. Could you please make sure that you clone Cesium in an empty directory? (One that does not have a node_modules folder in it)

@ManChrys
Copy link
Author

ManChrys commented Apr 8, 2021

Hello my friend and thank you for the fast response.

I tried your solution and i think everything its ok. Im i right ?

geo@geo-X570-GAMING-X:~/cesium$ npm install

npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (debug-js/debug#797)
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142

added 914 packages, and audited 915 packages in 36s

59 packages are looking for funding
run npm fund for details

2 high severity vulnerabilities

To address all issues (including breaking changes), run:
npm audit fix --force

Run npm audit for details.

geo@geo-X570-GAMING-X:~/cesium$ npm run build

[email protected] build
gulp build

[11:03:14] Using gulpfile ~/cesium/gulpfile.cjs
[11:03:14] Starting 'build'...
[11:03:17] Finished 'build' after 3.09 s

geo@geo-X570-GAMING-X:~/cesium$ npm start

[email protected] start
node server.cjs

Cesium development server running locally. Connect to http://localhost:8080/

EDIT

When i select the built version

Apps

Cesium Viewer (built version) 

i have the following error :
Cannot GET /Build/Apps/CesiumViewer/index.html

Im doing something wrong?

Thanks in advance.

@bampakoa
Copy link
Contributor

bampakoa commented Apr 12, 2021

@ManChrys to access the built version, you need to use the npm run buildApps script first (Check out here for more details on how to build the code).
In your case, I think that selecting the Cesium Viewer option (next to the built version) should suffice.

@dzungpng
Copy link
Contributor

dzungpng commented May 3, 2021

Closing this issue as the original question seems to have been resolved. @ManChrys Please feel free to follow up if it requires further discussion. Thanks @bampakoa for your inputs!

@dzungpng dzungpng closed this as completed May 3, 2021
@ManChrys
Copy link
Author

ManChrys commented May 3, 2021

@bampakoa thank you a lot for your help!! ✌️✌️

@e3dio
Copy link
Contributor

e3dio commented Jun 10, 2021

Please re-open this issue, am getting the same npm install error, master cloned to empty directory

npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/rollup
npm ERR! dev rollup@"^2.22.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer rollup@">=0.66.0 <2" from [email protected]
npm ERR! node_modules/rollup-plugin-uglify
npm ERR! dev rollup-plugin-uglify@"^6.0.3" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

@hst-m
Copy link

hst-m commented Jun 10, 2021

There are 2 issues open for this same problem library rollup-plugin-uglify:

#9129 npm reports security vulnerability in rollup-plugin-uglify -> serialize-javascript
#9214 switch to using terser plugin instead of uglify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants