n8n-io / n8n-nodes-starter

Example starter module for custom n8n nodes.
MIT License
190 stars 128 forks source link

Error loading node "runtime-blob-types" #43

Open technervs opened 10 months ago

technervs commented 10 months ago

I updated nodejs to version 18.18.2 and the packages to the latest version. When I run n8n at first it starts normally, but after I run the npm link n8n-nodes-oraclesql command, it starts giving these errors, I don't understand why the @aws-sdk folder gives an error in the node_modules folder .n8n\ custom but there is no error in the n8n folder, if I delete the node_modules folder which is inside the custom folder the n8n starts normally.

image

C:\Users\gefeson.oliveira\.n8n\custom>n8n start
Initializing n8n process
📌 InstantClient initialized successfully. ✅
Error loading node "runtime-blob-types" from: "C:/Users/gefeson.oliveira/.n8n/custom/node_modules/@aws-sdk/types/dist-es/blob/runtime-blob-types.node.js" - Unexpected token 'export'
C:\Users\gefeson.oliveira\.n8n\custom\node_modules\@aws-sdk\types\dist-es\blob\runtime-blob-types.node.js:1
export {};
^^^^^^

SyntaxError: Unexpected token 'export'
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1178:20)
    at Module._compile (node:internal/modules/cjs/loader:1220:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Function.Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at evalmachine.<anonymous>:1:6
    at Script.runInContext (node:vm:135:12)
Error: Exiting due to an error.
SyntaxError: Unexpected token 'export'

I returned all package and nodejs versions to their previous versions but the error still persists. Here are the versions of my package.json

"devDependencies": {
        "@types/express": "^4.17.20",
        "@types/jest": "^29.5.6",
        "@types/node": "^20.8.7",
        "@types/oracledb": "^6.0.2",
        "@types/request-promise-native": "~1.0.20",
        "@typescript-eslint/parser": "~6.8",
        "chokidar": "^3.5.3",
        "eslint-plugin-n8n-nodes-base": "^1.16.0",
        "gulp": "^4.0.2",
        "jest": "^29.7.0",
        "n8n-core": "^1.5.0",
        "n8n-workflow": "^1.6.0",
        "nodelinter": "^0.1.19",
        "nodemon": "^3.0.1",
        "prettier": "^3.0.3",
        "ts-jest": "^29.1.1",
        "tslint": "^6.1.3",
        "typescript": "~5.2.2"
    },
    "dependencies": {
        "oracledb": "^6.2.0"
    }
Joffcom commented 10 months ago

Hey @technervs,

Can you try running this repo to see if you get the same issue without your changes to see if you have the same issue. This will tell us if the issue is with this repo or with your custom node.

technervs commented 10 months ago

Hey @technervs,

Can you try running this repo to see if you get the same issue without your changes to see if you have the same issue. This will tell us if the issue is with this repo or with your custom node.

I downloaded this repo and did the same test, I got the same errors image

Joffcom commented 10 months ago

Hey @technervs,

I have just given it a go and I am nto able to reproduce this, Can you clear your .n8n/custom folder and try again to see if that helps or run something like npm explain @aws-sdk / npm why @aws-sdk to see if that shows anything.

technervs commented 10 months ago

When running the npm explain @aws-sdknpm why @aws-sdk commands, it generated an error log: 0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js 1 info using npm@9.8.1 2 info using node@v18.18.2 3 timing npm:load:whichnode Completed in 3ms 4 timing config:load:defaults Completed in 5ms 5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 2ms 6 timing config:load:builtin Completed in 2ms 7 timing config:load:cli Completed in 2ms 8 timing config:load:env Completed in 0ms 9 timing config:load:file:c:\www\n8n-nodes-oraclesql.npmrc Completed in 0ms 10 timing config:load:project Completed in 1ms 11 timing config:load:file:C:\Users\gefeson.oliveira.npmrc Completed in 1ms 12 timing config:load:user Completed in 1ms 13 timing config:load:file:C:\Users\gefeson.oliveira\AppData\Roaming\npm\etc\npmrc Completed in 0ms 14 timing config:load:global Completed in 0ms 15 timing config:load:setEnvs Completed in 1ms 16 timing config:load Completed in 12ms 17 timing npm:load:configload Completed in 12ms 18 timing config:load:flatten Completed in 3ms 19 timing npm:load:mkdirpcache Completed in 1ms 20 timing npm:load:mkdirplogs Completed in 0ms 21 verbose title npm explain @aws-sdk 22 verbose argv "explain" "@aws-sdk" 23 timing npm:load:setTitle Completed in 1ms 24 timing npm:load:display Completed in 0ms 25 verbose logfile logs-max:10 dir:C:\Users\gefeson.oliveira\AppData\Local\npm-cache_logs\2023-10-23T13_26_08_777Z- 26 verbose logfile C:\Users\gefeson.oliveira\AppData\Local\npm-cache_logs\2023-10-23T13_26_08_777Z-debug-0.log 27 timing npm:load:logFile Completed in 8ms 28 timing npm:load:timers Completed in 0ms 29 timing npm:load:configScope Completed in 0ms 30 timing npm:load Completed in 53ms 31 timing arborist:ctor Completed in 1ms 32 silly logfile start cleaning logs, removing 2 files 33 verbose shrinkwrap failed to load node_modules/.package-lock.json out of date, updated: node_modules 34 silly logfile done cleaning log files 35 timing command:explain Completed in 932ms 36 verbose stack Error: No dependencies found matching @aws-sdk 36 verbose stack at Explain.exec (C:\Program Files\nodejs\node_modules\npm\lib\commands\explain.js:57:13) 36 verbose stack at async module.exports (C:\Program Files\nodejs\node_modules\npm\lib\cli-entry.js:61:5) 37 verbose cwd c:\www\n8n-nodes-oraclesql 38 verbose Windows_NT 10.0.22621 39 verbose node v18.18.2 40 verbose npm v9.8.1 41 error No dependencies found matching @aws-sdk 42 verbose exit 1 43 timing npm Completed in 1103ms 44 verbose code 1 45 error A complete log of this run can be found in: C:\Users\gefeson.oliveira\AppData\Local\npm-cache_logs\2023-10-23T13_26_08_777Z-debug-0.log

Eu já havia feito o teste de limpar a pasta n8n/custom, mas não resolveu

Joffcom commented 10 months ago

I am not sure why that is still showing n8n-nodes-oraclesql in the output, Did you run the command from inside ~/.n8n/custom or in the nodes folder?

feelgood-interface commented 10 months ago

@Joffcom the problem occurs, when trying to install newer n8n package versions (i.e. n8n-core and n8n-workflow). When using this repo as is, the outdated n8n packages < 1.0 will be installed (specified in the package-lock) and the linking works. However, when trying to install and use the latest n8n packages, this error occurs when starting n8n after linking.

technervs commented 10 months ago

I managed to solve it in the following way, I went back to the old versions of the packages and I had to change the name of the node folder so that npm recognized it

feelgood-interface commented 10 months ago

@technervs did you rename the node_modules in .n8n/custom or which folder?

kimtiago commented 10 months ago

@Joffcom I'm with the same problem here... Followed this tutorial https://docs.n8n.io/integrations/creating-nodes/build/declarative-style-node/

Hey @technervs,

I have just given it a go and I am nto able to reproduce this, Can you clear your .n8n/custom folder and try again to see if that helps or run something like npm explain @aws-sdk / npm why @aws-sdk to see if that shows anything.

The problem is with @aws-sdk/types package, this is a dependency of mongodb and snowflake, i think the commit #d3f6356 started this situation... The output of npm explain @aws-sdk/types is partially here (was too big)

@aws-sdk/types@3.451.0 dev peer
node_modules/@aws-sdk/types
  @aws-sdk/types@"^3.222.0" from @aws-crypto/crc32@3.0.0
  node_modules/@aws-crypto/crc32
    @aws-crypto/crc32@"3.0.0" from @aws-sdk/middleware-flexible-checksums@3.451.0
    node_modules/@aws-sdk/middleware-flexible-checksums
      @aws-sdk/middleware-flexible-checksums@"3.451.0" from @aws-sdk/client-s3@3.451.0
      node_modules/@aws-sdk/client-s3
        @aws-sdk/client-s3@"^3.388.0" from snowflake-sdk@1.9.1
        node_modules/snowflake-sdk
          snowflake-sdk@"^1.8.0" from n8n-nodes-base@1.14.1
          node_modules/n8n-nodes-base
            peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
            node_modules/n8n-core
              dev n8n-core@"*" from the root project
    @aws-crypto/crc32@"3.0.0" from @smithy/eventstream-codec@2.0.13
    node_modules/@smithy/eventstream-codec
      @smithy/eventstream-codec@"^2.0.13" from @smithy/eventstream-serde-universal@2.0.13
      node_modules/@smithy/eventstream-serde-universal
        @smithy/eventstream-serde-universal@"^2.0.13" from @smithy/eventstream-serde-browser@2.0.13
        node_modules/@smithy/eventstream-serde-browser
          @smithy/eventstream-serde-browser@"^2.0.13" from @aws-sdk/client-s3@3.451.0
          node_modules/@aws-sdk/client-s3
            @aws-sdk/client-s3@"^3.388.0" from snowflake-sdk@1.9.1
            node_modules/snowflake-sdk
              snowflake-sdk@"^1.8.0" from n8n-nodes-base@1.14.1
              node_modules/n8n-nodes-base
                peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
                node_modules/n8n-core
                  dev n8n-core@"*" from the root project
        @smithy/eventstream-serde-universal@"^2.0.13" from @smithy/eventstream-serde-node@2.0.13
        node_modules/@smithy/eventstream-serde-node
          @smithy/eventstream-serde-node@"^2.0.13" from @aws-sdk/client-s3@3.451.0
          node_modules/@aws-sdk/client-s3
            @aws-sdk/client-s3@"^3.388.0" from snowflake-sdk@1.9.1
            node_modules/snowflake-sdk
              snowflake-sdk@"^1.8.0" from n8n-nodes-base@1.14.1
              node_modules/n8n-nodes-base
                peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
                node_modules/n8n-core
                  dev n8n-core@"*" from the root project
      @smithy/eventstream-codec@"^2.0.13" from @smithy/signature-v4@2.0.15
      node_modules/@smithy/signature-v4
        @smithy/signature-v4@"^2.0.0" from @aws-sdk/middleware-signing@3.451.0
        node_modules/@aws-sdk/middleware-signing
          @aws-sdk/middleware-signing@"3.451.0" from @aws-sdk/client-cognito-identity@3.451.0
          node_modules/@aws-sdk/client-cognito-identity
            @aws-sdk/client-cognito-identity@"3.451.0" from @aws-sdk/credential-provider-cognito-identity@3.451.0
            node_modules/@aws-sdk/credential-provider-cognito-identity
              @aws-sdk/credential-provider-cognito-identity@"3.451.0" from @aws-sdk/credential-providers@3.451.0
              node_modules/@aws-sdk/credential-providers
                optional @aws-sdk/credential-providers@"^3.186.0" from mongodb@4.17.1
                node_modules/mongodb
                  mongodb@"^4.17.1" from n8n-nodes-base@1.14.1
                  node_modules/n8n-nodes-base
                    peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
                    node_modules/n8n-core
                      dev n8n-core@"*" from the root project
            @aws-sdk/client-cognito-identity@"3.451.0" from @aws-sdk/credential-providers@3.451.0
            node_modules/@aws-sdk/credential-providers
              optional @aws-sdk/credential-providers@"^3.186.0" from mongodb@4.17.1
              node_modules/mongodb
                mongodb@"^4.17.1" from n8n-nodes-base@1.14.1
                node_modules/n8n-nodes-base
                  peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
                  node_modules/n8n-core
                    dev n8n-core@"*" from the root project
          @aws-sdk/middleware-signing@"3.451.0" from @aws-sdk/client-s3@3.451.0
          node_modules/@aws-sdk/client-s3
            @aws-sdk/client-s3@"^3.388.0" from snowflake-sdk@1.9.1
            node_modules/snowflake-sdk
              snowflake-sdk@"^1.8.0" from n8n-nodes-base@1.14.1
              node_modules/n8n-nodes-base
                peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
                node_modules/n8n-core
                  dev n8n-core@"*" from the root project
          @aws-sdk/middleware-signing@"3.451.0" from @aws-sdk/client-sts@3.451.0
          node_modules/@aws-sdk/client-sts
            @aws-sdk/client-sts@"3.451.0" from @aws-sdk/client-cognito-identity@3.451.0
            node_modules/@aws-sdk/client-cognito-identity
              @aws-sdk/client-cognito-identity@"3.451.0" from @aws-sdk/credential-provider-cognito-identity@3.451.0
              node_modules/@aws-sdk/credential-provider-cognito-identity
                @aws-sdk/credential-provider-cognito-identity@"3.451.0" from @aws-sdk/credential-providers@3.451.0
                node_modules/@aws-sdk/credential-providers
                  optional @aws-sdk/credential-providers@"^3.186.0" from mongodb@4.17.1
                  node_modules/mongodb
                    mongodb@"^4.17.1" from n8n-nodes-base@1.14.1
                    node_modules/n8n-nodes-base
                      peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
                      node_modules/n8n-core
                        dev n8n-core@"*" from the root project
              @aws-sdk/client-cognito-identity@"3.451.0" from @aws-sdk/credential-providers@3.451.0
              node_modules/@aws-sdk/credential-providers
                optional @aws-sdk/credential-providers@"^3.186.0" from mongodb@4.17.1
                node_modules/mongodb
                  mongodb@"^4.17.1" from n8n-nodes-base@1.14.1
                  node_modules/n8n-nodes-base
                    peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
                    node_modules/n8n-core
                      dev n8n-core@"*" from the root project
            @aws-sdk/client-sts@"3.451.0" from @aws-sdk/client-s3@3.451.0
            node_modules/@aws-sdk/client-s3
              @aws-sdk/client-s3@"^3.388.0" from snowflake-sdk@1.9.1
              node_modules/snowflake-sdk
                snowflake-sdk@"^1.8.0" from n8n-nodes-base@1.14.1
                node_modules/n8n-nodes-base
                  peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
                  node_modules/n8n-core
                    dev n8n-core@"*" from the root project
            @aws-sdk/client-sts@"3.451.0" from @aws-sdk/credential-providers@3.451.0
            node_modules/@aws-sdk/credential-providers
              optional @aws-sdk/credential-providers@"^3.186.0" from mongodb@4.17.1
              node_modules/mongodb
                mongodb@"^4.17.1" from n8n-nodes-base@1.14.1
                node_modules/n8n-nodes-base
                  peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
                  node_modules/n8n-core
                    dev n8n-core@"*" from the root project
          @aws-sdk/middleware-signing@"3.451.0" from @aws-sdk/middleware-sdk-sts@3.451.0
          node_modules/@aws-sdk/middleware-sdk-sts
            @aws-sdk/middleware-sdk-sts@"3.451.0" from @aws-sdk/client-sts@3.451.0
            node_modules/@aws-sdk/client-sts
              @aws-sdk/client-sts@"3.451.0" from @aws-sdk/client-cognito-identity@3.451.0
              node_modules/@aws-sdk/client-cognito-identity
                @aws-sdk/client-cognito-identity@"3.451.0" from @aws-sdk/credential-provider-cognito-identity@3.451.0
                node_modules/@aws-sdk/credential-provider-cognito-identity
                  @aws-sdk/credential-provider-cognito-identity@"3.451.0" from @aws-sdk/credential-providers@3.451.0
                  node_modules/@aws-sdk/credential-providers
                    optional @aws-sdk/credential-providers@"^3.186.0" from mongodb@4.17.1
                    node_modules/mongodb
                      mongodb@"^4.17.1" from n8n-nodes-base@1.14.1
                      node_modules/n8n-nodes-base
                        peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
                        node_modules/n8n-core
                          dev n8n-core@"*" from the root project
                @aws-sdk/client-cognito-identity@"3.451.0" from @aws-sdk/credential-providers@3.451.0
                node_modules/@aws-sdk/credential-providers
                  optional @aws-sdk/credential-providers@"^3.186.0" from mongodb@4.17.1
                  node_modules/mongodb
                    mongodb@"^4.17.1" from n8n-nodes-base@1.14.1
                    node_modules/n8n-nodes-base
                      peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
                      node_modules/n8n-core
                        dev n8n-core@"*" from the root project
              @aws-sdk/client-sts@"3.451.0" from @aws-sdk/client-s3@3.451.0
              node_modules/@aws-sdk/client-s3
                @aws-sdk/client-s3@"^3.388.0" from snowflake-sdk@1.9.1
                node_modules/snowflake-sdk
                  snowflake-sdk@"^1.8.0" from n8n-nodes-base@1.14.1
                  node_modules/n8n-nodes-base
                    peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
                    node_modules/n8n-core
                      dev n8n-core@"*" from the root project
              @aws-sdk/client-sts@"3.451.0" from @aws-sdk/credential-providers@3.451.0
              node_modules/@aws-sdk/credential-providers
                optional @aws-sdk/credential-providers@"^3.186.0" from mongodb@4.17.1
                node_modules/mongodb
                  mongodb@"^4.17.1" from n8n-nodes-base@1.14.1
                  node_modules/n8n-nodes-base
                    peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
                    node_modules/n8n-core
                      dev n8n-core@"*" from the root project
        @smithy/signature-v4@"^2.0.0" from @aws-sdk/signature-v4-multi-region@3.451.0
        node_modules/@aws-sdk/signature-v4-multi-region
          @aws-sdk/signature-v4-multi-region@"3.451.0" from @aws-sdk/client-s3@3.451.0
          node_modules/@aws-sdk/client-s3
            @aws-sdk/client-s3@"^3.388.0" from snowflake-sdk@1.9.1
            node_modules/snowflake-sdk
              snowflake-sdk@"^1.8.0" from n8n-nodes-base@1.14.1
              node_modules/n8n-nodes-base
                peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
                node_modules/n8n-core
                  dev n8n-core@"*" from the root project
  @aws-sdk/types@"^3.222.0" from @aws-crypto/crc32c@3.0.0
  node_modules/@aws-crypto/crc32c
    @aws-crypto/crc32c@"3.0.0" from @aws-sdk/middleware-flexible-checksums@3.451.0
    node_modules/@aws-sdk/middleware-flexible-checksums
      @aws-sdk/middleware-flexible-checksums@"3.451.0" from @aws-sdk/client-s3@3.451.0
      node_modules/@aws-sdk/client-s3
        @aws-sdk/client-s3@"^3.388.0" from snowflake-sdk@1.9.1
        node_modules/snowflake-sdk
          snowflake-sdk@"^1.8.0" from n8n-nodes-base@1.14.1
          node_modules/n8n-nodes-base
            peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
            node_modules/n8n-core
              dev n8n-core@"*" from the root project
  @aws-sdk/types@"^3.222.0" from @aws-crypto/sha1-browser@3.0.0
  node_modules/@aws-crypto/sha1-browser
    @aws-crypto/sha1-browser@"3.0.0" from @aws-sdk/client-s3@3.451.0
    node_modules/@aws-sdk/client-s3
      @aws-sdk/client-s3@"^3.388.0" from snowflake-sdk@1.9.1
      node_modules/snowflake-sdk
        snowflake-sdk@"^1.8.0" from n8n-nodes-base@1.14.1
        node_modules/n8n-nodes-base
          peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
          node_modules/n8n-core
            dev n8n-core@"*" from the root project
  @aws-sdk/types@"^3.222.0" from @aws-crypto/sha256-browser@3.0.0
  node_modules/@aws-crypto/sha256-browser
    @aws-crypto/sha256-browser@"3.0.0" from @aws-sdk/client-cognito-identity@3.451.0
    node_modules/@aws-sdk/client-cognito-identity
      @aws-sdk/client-cognito-identity@"3.451.0" from @aws-sdk/credential-provider-cognito-identity@3.451.0
      node_modules/@aws-sdk/credential-provider-cognito-identity
        @aws-sdk/credential-provider-cognito-identity@"3.451.0" from @aws-sdk/credential-providers@3.451.0
        node_modules/@aws-sdk/credential-providers
          optional @aws-sdk/credential-providers@"^3.186.0" from mongodb@4.17.1
          node_modules/mongodb
            mongodb@"^4.17.1" from n8n-nodes-base@1.14.1
            node_modules/n8n-nodes-base
              peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
              node_modules/n8n-core
                dev n8n-core@"*" from the root project
      @aws-sdk/client-cognito-identity@"3.451.0" from @aws-sdk/credential-providers@3.451.0
      node_modules/@aws-sdk/credential-providers
        optional @aws-sdk/credential-providers@"^3.186.0" from mongodb@4.17.1
        node_modules/mongodb
          mongodb@"^4.17.1" from n8n-nodes-base@1.14.1
          node_modules/n8n-nodes-base
            peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
            node_modules/n8n-core
              dev n8n-core@"*" from the root project
    @aws-crypto/sha256-browser@"3.0.0" from @aws-sdk/client-s3@3.451.0
    node_modules/@aws-sdk/client-s3
      @aws-sdk/client-s3@"^3.388.0" from snowflake-sdk@1.9.1
      node_modules/snowflake-sdk
        snowflake-sdk@"^1.8.0" from n8n-nodes-base@1.14.1
        node_modules/n8n-nodes-base
          peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
          node_modules/n8n-core
            dev n8n-core@"*" from the root project
    @aws-crypto/sha256-browser@"3.0.0" from @aws-sdk/client-sso@3.451.0
    node_modules/@aws-sdk/client-sso
      @aws-sdk/client-sso@"3.451.0" from @aws-sdk/credential-provider-sso@3.451.0
      node_modules/@aws-sdk/credential-provider-sso
        @aws-sdk/credential-provider-sso@"3.451.0" from @aws-sdk/credential-provider-ini@3.451.0
        node_modules/@aws-sdk/credential-provider-ini
          @aws-sdk/credential-provider-ini@"3.451.0" from @aws-sdk/credential-provider-node@3.451.0
          node_modules/@aws-sdk/credential-provider-node
            @aws-sdk/credential-provider-node@"3.451.0" from @aws-sdk/client-cognito-identity@3.451.0
            node_modules/@aws-sdk/client-cognito-identity
              @aws-sdk/client-cognito-identity@"3.451.0" from @aws-sdk/credential-provider-cognito-identity@3.451.0
              node_modules/@aws-sdk/credential-provider-cognito-identity
                @aws-sdk/credential-provider-cognito-identity@"3.451.0" from @aws-sdk/credential-providers@3.451.0
                node_modules/@aws-sdk/credential-providers
                  optional @aws-sdk/credential-providers@"^3.186.0" from mongodb@4.17.1
                  node_modules/mongodb
                    mongodb@"^4.17.1" from n8n-nodes-base@1.14.1
                    node_modules/n8n-nodes-base
                      peer n8n-nodes-base@"1.14.1" from n8n-core@1.14.1
                      node_modules/n8n-core
                        dev n8n-core@"*" from the root project
Joffcom commented 10 months ago

Hey @kimtiago,

When are you seeing the error? Are you also creating a node on Windows?

kimtiago commented 10 months ago

I'm seeing this error when start my n8n installed global by npm install n8n -g after linking the NASA PICS node created by n8n docs tutorial. I'm using Windows.

technervs commented 10 months ago

Você renomeou a pasta In ou qual?node_modules``.n8n/custom

I renamed the project folder and when I use npm link it consequently changes the name of the folder in the .n8n/custom directory

Joffcom commented 10 months ago

@kimtiago interesting at the moment from what I can tell this issue only appears for windows users.

I will do some digging to see if this has been raised on the aws-sdk project.

kimtiago commented 10 months ago

Hi @Joffcom , I've decided to stop trying to develop n8n on Windows. However, I'm now facing a different issue.

On my Ubuntu 22.04 VPS, where my applications are running with Docker/Portainer/Traefik, I've set up a separate n8n instance for development purposes. I've also installed Node.js and npm directly on the server's root to work on this starter-node project.

This particular n8n instance has its .n8n volume mapped out, but the 'link' command seems ineffective because the instance isn't able to recognize the project's actual path. Do you have any advice or suggestions on how to effectively work in this setup?

Jlopez2045 commented 9 months ago

I'm having this issue running Linux

kimtiago commented 8 months ago

FYI, this is happening in WSL too