forge-dataviz-iot-reference-app
forge-dataviz-iot-reference-app copied to clipboard
ERR! code 1 npm ERR! path /home/ec2-user/forge-dataviz-iot-reference-app/node_modules/node-sass
Hello,
I hope all is well.
We are trying to install this application on an aws-ec2 Linux instance unfortunately we are running into the same issue over and over after installing all possible packages. Please see our steps and error message
1- git clone https://github.com/Autodesk-Forge/forge-dataviz-iot-reference-app.git into our ec2 2- cd forge-dataviz-iot-reference-app npm install
error start here
WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm ERR! code 1 npm ERR! path /home/ec2-user/forge-dataviz-iot-reference-app/node_modules/node-sass npm ERR! command failed npm ERR! command sh -c node scripts/build.js
Please let me know if you would need more information and thank you for the great work.
This error is caused by an outdated node-sass package in the node dependencies. The referenced version is 5.x, while the newest version of NodeJS really needs v6.x or newer. The maintainer of this project should increase the dependency version of node-sass to at least v6.0.1
I ran into issues with npm install
as well. Not sure if those were the same errors, but I had to downgrade to Node.js v15 in order to get rid of the failures.
Hi,
This project is based on the node.js v15. If you use node.js v16 and above, please change the node-sass
version referencing in the package.json
. For example, for node.js v16, the node-sass
version should be ^6.0.0
.
Here is a quick guide for minimum and maximum supported versions of node-sass from its repo.
NodeJS | Supported node-sass version | Node Module |
---|---|---|
Node 17 | 7.0+ | 102 |
Node 16 | 6.0+ | 93 |
Node 15 | 5.0+, <7.0 | 88 |
Node 14 | 4.14+ | 83 |
Node 13 | 4.13+, <5.0 | 79 |
Node 12 | 4.12+, <8.0 | 72 |
Node 11 | 4.10+, <5.0 | 67 |
Node 10 | 4.9+, <6.0 | 64 |
Node 8 | 4.5.3+, <5.0 | 57 |
Node <8 | <5.0 | <57 |