- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2020 11:20 PM
When I prepare the environment of the new UI framework in orlando, at the step of now-cli develop, it always shows error:
Error: Cannot find module '@servicenow/cli-component-archetype/package.json'
I've installed the package in the project folder and I can find the package.json file in the node_modules:
Any help?
Solved! Go to Solution.
- Labels:
-
Agent Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2020 11:31 PM
Dear Dirk,
I solved this problem by the following steps:
npm install -g node-gyp
npm install --global --production windows-build-tools
npm cache clean -f
npm install
npm install node-sass (manully, maybe need npm rebuild node-sass if it doesn't work)
Now, it works fine.
Thank your, Dirk!
BR
Daniel

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2020 01:02 AM
Can you show a screenshot from where you executed the CLI command?
BR
Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2020 02:51 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2020 04:06 AM
Did you use the latest version of the CLI? It may be updated recently?
Are you starting the CLI from the root folder of your component?
So, is the "hello-world" folder the root for your component?
Let me know, if you changed some of the "pre-built" files manually.
BR
Dirk

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2020 04:10 AM
The missing thing seems to be a NPM module, which I find in my Project folder under
> \projectfolder\node_modules\@servicenow\cli-component-archetype\
In this folder, I have a "package.json" file. This seems to be missing in your project.
Can you please cross-check, if this file also exists in your project folder?
Please let me know about it.
BR
DIrk