Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Not working with node 8.9.3 #21

Open
Yearhouse opened this issue Jan 12, 2018 · 6 comments
Open

Not working with node 8.9.3 #21

Yearhouse opened this issue Jan 12, 2018 · 6 comments

Comments

@Yearhouse
Copy link

When using dxwcmdesigns init i get the followinf error:

image

@mburati
Copy link
Contributor

mburati commented Jan 15, 2018

@Yearhouse - it appears that the current release of this repository was built and tested with earlier versions of Node (0.12 and 4.x). It looks like the latest Node 8.x doesn't work with one of the versions of one or more of the dependencies that this tool was released with.

For the dxwcmdesigns portion of the toolkit, this may be a simple update, but it'l need some testing and I'll need to check with those that built/tested and released the current version before merging it to master, but I have an attempt at an upgrade on the update_dependencies branch.

You could try downloading just the updated dxwcmdesigns utility from that branch here:
https://github.com/OpenNTF/WebDevToolkitForDx/blob/update_dependencies/wcm-design.tar.gz?raw=true
and then running npm install -g wcm-design.tar.gz (with sudo if on Mac or Linux and otherwise running as a non-privileged user) against this downloaded proposed update, from that branch. That proposed update to the dxwcmdesigns portion of this toolkit has an updated dependency (version #s) for graceful-fs and q modules, that may help with your use of Node 8.9.x. Note, this proposed update is only for the dxwcmdesigns utility so far, I haven't had time to look into the other pieces (the dashboard and dxsync utilities) with Node 8.x at this point.

I hope that helps.

@thezeeck
Copy link

I can't run the command "npm install -g wcm-design.tar.gz"

I'm running on:
npm -v 6.4.1
node -v v8.12.0

This is the log generated:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli '[email protected]' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 83b49430f613bfe5
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData error for [email protected] request to https://registry.npmjs.org/nw failed, reason: self signed certificate in certificate chain
8 timing stage:rollbackFailedOptional Completed in 2ms
9 timing stage:runTopLevelLifecycles Completed in 1103ms
10 verbose type system
11 verbose stack FetchError: request to https://registry.npmjs.org/nw failed, reason: self signed certificate in certificate chain
11 verbose stack at ClientRequest.req.on.err (C:\Program Files\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:68:14)
11 verbose stack at emitOne (events.js:116:13)
11 verbose stack at ClientRequest.emit (events.js:211:7)
11 verbose stack at TLSSocket.socketErrorListener (_http_client.js:387:9)
11 verbose stack at emitOne (events.js:116:13)
11 verbose stack at TLSSocket.emit (events.js:211:7)
11 verbose stack at emitErrorNT (internal/streams/destroy.js:66:8)
11 verbose stack at _combinedTickCallback (internal/process/next_tick.js:139:11)
11 verbose stack at process._tickCallback (internal/process/next_tick.js:181:9)
12 verbose cwd C:\Users\0mcricer\Downloads\digexp-toolkit
13 verbose Windows_NT 10.0.10240
14 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "[email protected]"
15 verbose node v8.12.0
16 verbose npm v6.4.1
17 error code SELF_SIGNED_CERT_IN_CHAIN
18 error errno SELF_SIGNED_CERT_IN_CHAIN
19 error request to https://registry.npmjs.org/nw failed, reason: self signed certificate in certificate chain
20 verbose exit [ 1, true ]

@mburati
Copy link
Contributor

mburati commented Oct 11, 2018

The above npm issues look similar to other npm install issues (with firewalls causing certificate issues during npm install) described in this npm thread here: npm/npm#7519

@thezeeck
Copy link

I downloaded the wcm-design.tar.gz file and install it correctly, but now give the following error:

Error: Can not find module 'internal / util / types'
at Function.Module._resolveFilename (module.js: 548: 15)
at Function.Module._load (module.js: 475: 25)
at Module.require (module.js: 597: 17)
at require (internal / module.js: 11: 18)
at evalmachine. : 31: 26
at Object. (C: \ Users \ 0mcricer \ Downloads \ DXSyncCLI-1.0.2 \ node_modules \ graceful-fs \ fs.js: 11: 1)
at Module._compile (module.js: 653: 30)
at Object.Module._extensions..js (module.js: 664: 10)
at Module.load (module.js: 566: 32)
at tryModuleLoad (module.js: 506: 12)

@mburati
Copy link
Contributor

mburati commented Oct 12, 2018

@thezeeck - can you confirm whether you downloaded wcm-design.tar.gz from the above link (in this issue, the one on the update_dependencies branch) or the original one in this repo, that was built with Node 0.12 and 4 ? The one in the branch above was built specifically for the issue you list above.

The one from the update_dependencies branch appears to be 152635 bytes after download, where the original was 152547 bytes. If I install the original one from the master branch, in the root of this repo, then run dxwcmdesigns init then I get the same error you do with Node 8.12, but if I install the one from the link in this thread (off update_dependencies branch) then run init, it properly asks me for configuration params.

Can you try downloading from the following URL and installing again?
https://github.com/OpenNTF/WebDevToolkitForDx/blob/update_dependencies/wcm-design.tar.gz?raw=true

Full disclosure: I didn't build this particular open source utility, I just proposed the updated dependencies above, for use with newer versions of node. Let us know if you still have issues after reinstalling from the above link, and I'll see if I can find an owner, to look into any remaining issues.

Thanks, and I hope that helps,
..Mike

@mburati
Copy link
Contributor

mburati commented Oct 12, 2018

Also @thezeeck - can you confirm whether you were running the dxwcmdesigns command utility when you hit this (which is what this git issue thread was for) or the dxsync utility?

The above dcm-design link was to fix this issue for the user that reported it here, for dxwcmdesigns. If you're trying to use dxsync, that's a separate utility.

For dxsync, there's a proposed update to get that to work with newer Node versions here: https://github.com/OpenNTF/WebDevToolkitForDx/blob/master/TempPatch/dxsync-1.0.3-1.tar.gz

For the whole dxdashboard, there's a proposed update to dependencies (no code changes, just tweaked dependency version numbers) here:
https://github.com/OpenNTF/WebDevToolkitForDx/blob/update_dependencies/release/digexp-toolkit.zip?raw=true

I hope that helps
..Mike

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

No branches or pull requests

3 participants