chassis / nodejs Goto Github PK
View Code? Open in Web Editor NEWA Chassis extension to install Node.js
A Chassis extension to install Node.js
A fresh Chassis install with just this extension doesn't install node as expected:
default: Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install clang-3.4' returned 100: Reading package lists...
default: Building dependency tree...
default: Reading state information...
default: Package clang-3.4 is not available, but is referred to by another package.
default: This may mean that the package is missing, has been obsoleted, or
default: is only available from another source
default: However the following packages replace it:
default: clang
default:
default: E: Package 'clang-3.4' has no installation candidate
default: Error: /Stage[main]/Nodejs/Package[clang-3.4]/ensure: change from 'purged' to 'latest' failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install clang-3.4' returned 100: Reading package lists...
default: Building dependency tree...
default: Reading state information...
default: Package clang-3.4 is not available, but is referred to by another package.
default: This may mean that the package is missing, has been obsoleted, or
default: is only available from another source
default: However the following packages replace it:
default: clang
default:
default: E: Package 'clang-3.4' has no installation candidate
We don't need the apt update as a dependency anymore so let's remove it.
We should add the ability to remove the node and npm
It might be nice to be able to specify a major version number in our yaml files rather than hard coding it to the latest version
==> default: Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install clang-3.4' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: Package clang-3.4 is not available, but is referred to by another package.
==> default: This may mean that the package is missing, has been obsoleted, or
==> default: is only available from another source
==> default: However the following packages replace it:
==> default: clang-3.8:i386 clang:i386 clang-3.8 clang clang-3.7:i386 clang-3.6:i386
==> default: clang-3.5:i386 clang-3.7 clang-3.6 clang-3.5
==> default:
==> default: E: Package 'clang-3.4' has no installation candidate
==> default: Error: /Stage[main]/Nodejs/Package[clang-3.4]/ensure: change from purged to latest failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install clang-3.4' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: Package clang-3.4 is not available, but is referred to by another package.
==> default: This may mean that the package is missing, has been obsoleted, or
==> default: is only available from another source
==> default: However the following packages replace it:
==> default: clang-3.8:i386 clang:i386 clang-3.8 clang clang-3.7:i386 clang-3.6:i386
==> default: clang-3.5:i386 clang-3.7 clang-3.6 clang-3.5
==> default:
==> default: E: Package 'clang-3.4' has no installation candidate
Looks like clang-3.4
is no longer available for Ubuntu Xenial, using clang-3.8
seems to work
I think it might be useful to provide yarn alongside this, some build scripts use that software to handle npm packages and additionally npm scripts may rely on it.
Yey? Nay?
The current Node LTS version is 18.12.1
so we should probably bump our version from 16.x to 18.x
As of the other day we are now getting this error:
==> default: Error: /usr/bin/curl -sL https://deb.nodesource.com/setup | sudo bash - returned 1 instead of one of [0]
==> default: Error: /Stage[main]/Nodejs/Exec[node update]/returns: change from notrun to 0 failed: /usr/bin/curl -sL https://deb.nodesource.com/setup | sudo bash - returned 1 instead of one of [0]
==> default: Notice: /Package[nodejs]: Dependency Exec[node update] has failures: true
==> default: Warning: /Package[nodejs]: Skipping because of failed dependencies
==> default: Notice: Finished catalog run in 30.00 seconds
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
We need to change the URL to resolve this issue.
We don't need Yarn. I think it was added due to a copy and paste error.
Chassis NodeJS should switch to https://forge.puppet.com/puppet/nodejs
Some of the benefits:
• Makes available a global npm
provider which benefits Chassis/grunt & Chassis/bower extensions
• Primary NodeJS source package continues to be provided by https://nodesource.com/
• Supports .npmrc
files
• Supports globally installing packages (edited)
We need to add support for Bionic Beaver. clang-3.8
isn't available for bionic so let's try bumping the version up to clang-6.0
and test it on both Xenial and Bionic.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.