I can’t see why …
node-wa# n8n-node-dev build
Build credentials and nodes
=========================
The nodes got build and saved into the following folder:
/root/.n8n/custom
node-wa# grep require *ts
const os = require('os');
const axios = require('axios');
node-wa# n8n-node-dev build
Build credentials and nodes
=========================
The nodes got build and saved into the following folder:
/root/.n8n/custom
node-wa# npm list -g | egrep "n8n|axios"
├─┬ axios@0.20.0
├─┬ n8n@0.76.0
│ │ ├─┬ axios@0.19.2
│ │ ├─┬ axios@0.19.0
│ ├─┬ n8n-core@0.41.0
│ │ ├── n8n-workflow@0.37.0 deduped
│ ├─┬ n8n-editor-ui@0.52.0
│ ├─┬ n8n-nodes-base@0.71.0
│ │ │ │ │ ├── axios@0.19.2 deduped
│ │ ├── n8n-core@0.41.0 deduped
│ ├─┬ n8n-workflow@0.37.0
├─┬ n8n-node-dev@0.9.0
│ ├─┬ n8n-core@0.31.0
│ │ ├── n8n-workflow@0.28.0 deduped
│ ├─┬ n8n-workflow@0.28.0
node-wa# cat ../../run
#!/bin/sh
#
export NODE_FUNCTION_ALLOW_BUILTIN=*
n8n
node-wa# sh ../../run
(node:19017) UnhandledPromiseRejectionWarning: Error: There was an error: Cannot find module 'axios'
at Object.error (/usr/lib/node_modules/n8n/node_modules/@oclif/errors/lib/index.js:26:15)
at Start.error (/usr/lib/node_modules/n8n/node_modules/@oclif/command/lib/command.js:60:23)
at /usr/lib/node_modules/n8n/dist/commands/start.js:114:22
(node:19017) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:19017) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
node-wa#