I am trying to follow the tutorial in Tutorial: Build a declarative-style node | n8n Docs for creating my custom connector.
Describe the problem/error/question
installing n8n via npm install n8n -g
does not work
What is the error message (if any)?
npm ERR! code 127
npm ERR! path /home/usr/.nvm/versions/node/v18.19.0/lib/node_modules/n8n/node_modules/@rudderstack/rudder-sdk-node
npm ERR! command failed
npm ERR! command sh -c npx patch-package
npm ERR! npm WARN exec The following package was not found and will be installed: [email protected]
npm ERR! sh: 1: patch-package: not found
n8n
February 9, 2024, 9:58am
2
It looks like your topic is missing some important information. Could you provide the following if applicable.
n8n version:
Database (default: SQLite):
n8n EXECUTIONS_PROCESS setting (default: own, main):
Running n8n via (Docker, npm, n8n cloud, desktop app):
Operating system:
Jon
February 9, 2024, 1:07pm
3
Hey @sallyde ,
Welcome to the community
Can you try using the command below and let me know how you get on.
npm install -g --omit=dev n8n --ignore-scripts
Thanks for your reply @Jon .
npx n8n
works just fine and runs the server.
however, npm install -g --omit=dev n8n --ignore-scripts
does not run the server on http://localhost:5678/
any idea about why starter project does not work? I have created an issue for it here
opened 12:44PM - 08 Feb 24 UTC
hi,
i am trying to install the sample Nasa starter project from here :
http… s://docs.n8n.io/integrations/creating-nodes/build/declarative-style-node/
at step 6 while trying `npm run build` in my node dir, i get this error:
```
fs.js:42
} = primordials;
^
ReferenceError: primordials is not defined
```
i tried to force the dependency by adding the following to my `package.json`:
```
"pnpm":{
"overrides": {
"graceful-fs": "^4.2.11"
}
}
```
but apparently it can not be applied when there glup server is forced to 3.9.1 in the very same package.json of this repository:
`gulp": "^3.9.1",`
any ideas how to solve this?
Thanks.
Jon
February 9, 2024, 2:53pm
5
Hey @sallyde ,
I need to look into the starter project still. The npm install will install n8n then you can use n8n start
to launch it.
1 Like
trRad23
February 14, 2024, 10:44am
6
For anyone else encountering this issue, it appears a fix has been created, which is awaiting release: https://github.com/n8n-io/n8n/pull/8568
The issue occurs due to a rudderstack postinstall script (specifically: rudderstack/[email protected] ).
The following command:
npm install -g --omit=dev n8n --ignore-scripts
Will work but will obviously skip the various setup scripts, meaning you won’t be able to run “n8n start” out of the box.
The fastest solution I found is to install a downgraded version, by running the command:
npm install -g [email protected]
trRad23
February 16, 2024, 4:18pm
7
Issue should be resolved with release 1.27.3+
system
Closed
May 16, 2024, 4:18pm
8
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.