Errors using npx to install `auth` template
Closed this issue · 2 comments
frantic0 commented
Hi,
in my environment
Operating System (or Browser): Mac OS High Sierra (Chrome Version 88.0.4324.182 (Official Build) (x86_64))
Node Version (if applicable): v12.18.0
when I run
npx @sveltech/routify init --branch auth
or
npx @roxi/routify init --branch auth
I get these errors
[Routify] Fetching template
npx: installed 1 in 0.947s
> cloned roxiness/routify-starter#auth
[Routify] Installing dependencies
ls
internal/modules/cjs/loader.js:969
throw err;
^
Error: Cannot find module 'nan'
Require stack:
- /Users/francisco/Documents/dev/MIMIC/roxi/node_modules/glob-watcher/node_modules/fsevents/[eval]
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
at Function.Module._load (internal/modules/cjs/loader.js:842:27)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18)
at [eval]:1:1
at Script.runInThisContext (vm.js:120:20)
at Object.runInThisContext (vm.js:311:38)
at Object.<anonymous> ([eval]-wrapper:10:26)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at evalScript (internal/process/execution.js:94:25) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Users/francisco/Documents/dev/MIMIC/roxi/node_modules/glob-watcher/node_modules/fsevents/[eval]'
]
}
gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/Users/francisco/.nvm/versions/node/v12.18.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 17.7.0
gyp ERR! command "/Users/francisco/.nvm/versions/node/v12.18.0/bin/node" "/Users/francisco/.nvm/versions/node/v12.18.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/francisco/Documents/dev/MIMIC/roxi/node_modules/glob-watcher/node_modules/fsevents
gyp ERR! node -v v12.18.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
[Routify] Run "npm run dev" to start the server.
Not sure if this is leading to other errors but so that you now
jakobrosenberg commented
This is most likely an issue with degit
or corrupt npm cache.
A workaround would be to clone this branch.
https://github.com/roxiness/routify-starter/tree/auth
frantic0 commented
great, thanks for the workaround