# Error while installing "Cesium" with "npm intall"

**URL:** <https://community.cesium.com/t/error-while-installing-cesium-with-npm-intall/15115>\
**Category:** CesiumJS\
**Created:** [September 2, 2021, 11:19am UTC](https://community.cesium.com/t/error-while-installing-cesium-with-npm-intall/15115 "2021-09-02T11:19:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GEOZC](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/geozc/32/6204_2.png) [@GEOZC](https://community.cesium.com/u/GEOZC)\
**Post date:** [September 2, 2021, 11:19am UTC](https://community.cesium.com/t/error-while-installing-cesium-with-npm-intall/15115/1 "2021-09-02T11:19:02Z")

</div>

I installed “Cesium” by “npm install”,then it appear errors as follow, and i dont know how to deal with.  
PS D:\zhoucheng\cesiumStudy\cesium\> npm install  
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents  
2.

> cesium@1.85.0 prepare D:\zhoucheng\cesiumStudy\cesium  
> gulp prepare

D:\zhoucheng\cesiumStudy\cesium\node\_modules\globby\index.js:28  
} catch {  
^

SyntaxError: Unexpected token {  
at createScript (vm.js:80:10)  
at Object.runInThisContext (vm.js:139:10)  
at Module.\_compile (module.js:607:28)  
at Object.Module.\_extensions…js (module.js:654:10)  
at Module.load (module.js:556:32)  
at tryModuleLoad (module.js:499:12)  
at Function.Module.\_load (module.js:491:3)  
at Module.require (module.js:587:17)  
at require (internal/module.js:11:18)  
at Object. (D:\zhoucheng\cesiumStudy\cesium\gulpfile.cjs:13:16)  
npm ERR! code ELIFECYCLE  
npm ERR! errno 1  
npm ERR! cesium@1.85.0 prepare: `gulp prepare`  
npm ERR! Exit status 1  
npm ERR!  
npm ERR! Failed at the cesium@1.85.0 prepare 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\yongcht\AppData\Roaming\npm-cache\_logs\2021-09-02T11\_13\_31\_150Z-debug.log

---

<div class="post-metadata">

**Author:** ![sam.rothstein](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sam.rothstein/32/6584_2.png) [@sam.rothstein](https://community.cesium.com/u/sam.rothstein)\
**Post date:** [September 3, 2021, 3:25am UTC](https://community.cesium.com/t/error-while-installing-cesium-with-npm-intall/15115/2 "2021-09-03T03:25:36Z")

</div>

@GEOZC

Welcome to the community! 😀 🚀

It is somewhat difficult for me to help debug this issue without more information on your development environment. What command are you using to install CesiumJS? What other libraries are you using with CesiumJS?

In the meantime, you should start by upgrading to `fsevents` as suggested by

```auto
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents

```

The second part of the error seems related to a token. Are you using Cesium ion to import data into CesiumJS? If so, ensure you follow the “Create an account and get a token” part of this guide.

> **[CesiumJS Quickstart](https://cesium.com/learn/cesiumjs-learn/cesiumjs-quickstart/)**
>
> This tutorial demonstrates how to set up a basic Cesium app on a web page.

Let me know if you have any other questions or concerns. I am looking forward to helping you debug your issue.

-Sam
