- 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-28-2020 05:46 AM
Here's my package.json:
{
"name": "@dtt/hello-world",
"version": "0.0.1",
"private": false,
"description": "'Hello",
"keywords": [
"ServiceNow",
"Now Experience UI Component",
"@dtt/hello-world"
],
"readme": "./README.md",
"engines": {
"node": ">=8.6.0",
"npm": ">=5.3.0"
},
"module": "src/index.js",
"dependencies": {
"@servicenow/ui-core": "orlando",
"@servicenow/ui-renderer-snabbdom": "orlando",
"@servicenow/cli-archetype": "17.0.3",
"@servicenow/cli-component-archetype": "17.0.3",
"@servicenow/sass-theme": "orlando",
"@servicenow/sass-kit": "orlando",
"@servicenow/library-translate": "orlando"
},
"devDependencies": {
"@servicenow/cli-archetype-dev": "17.0.3",
"@servicenow/cli-component-archetype-dev": "17.0.3"
}
}
This 'Hello World' is created by me, I didn't download it anywhere. I will try to set the version as 17.0.1 and try again

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2020 10:26 AM
- 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-28-2020 11:38 PM
Great
Thanks for letting me know, that you were able to sort out.
So, it looked like a local config issue on your machine, and nothing related to the CLI directly, right? Well done!
Have fun creating components.
BR
Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2020 04:55 AM
Thanks a lot, this worked.