New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when building new app #383
Comments
I have same problem when running on docker. |
error while trying to install nuxt on ubuntu 16.04 module.js:328 Error: Cannot find module '/root/.npm/_npx/11123/lib/node_modules/create-nuxt-app/node_modules/ejs/postinstall.js' npm ERR! A complete log of this run can be found in: |
Same error:
Edit |
Same issue here:
|
I created a website on nuxt and have a infinite loader on the feed on the landing. Gives me great performance using vue and server render. Any thoughts? FYI you have to login to enjoy the feed :-p |
Getting this error on a new app install, debian 10:
Fixed it with @cmaneu answer |
I got the same error. I used Node.js version 14.x, then switched to Node.js version 12.x and the problem was fixed. |
Tried node 14, 14-alpine, 12, 12-alpine and all yielded the same error. I had to shell into a node container, install globally and then npm init. MSYS_NO_PATHCONV=1 docker run --rm -it -v `pwd`:/usr/src -w /usr/src node:12 sh
$ npm install -g create-nuxt-app
$ npm init nuxt-app . The |
@LukeP1 From the log, the error seems from ejs and there is an issue there as well mde/ejs#487 , I think we can open an issue there and figure out a fix. |
+1 |
I got the same error using Node v12.18.0. Then I tried
|
i encounter same issue. It's seem that Docker daemon always runs as the root user, we not allow to use root user to run npx command. |
I have same problem.
versions # in Node.js container
root@204c32b15683:/app# node -v
v14.3.0
root@204c32b15683:/app# npm -v
6.14.4
root@204c32b15683:/app# nuxt -v
2.0.0
root@204c32b15683:/app# create-nuxt-app -v
create-nuxt-app/2.15.0 linux-x64 node-v14.3.0 |
I was encountering the same issue just a little while ago, but I seem to have fixed it by using a different non-root account. I'm not sure why but it worked for me. |
|
+1 |
FYI, I encountered a similar error while installing react-scripts (
|
@amjltc295 From the error log, it seems missing ejs postinstall file from you node_module, can you double check if |
docker run -v "$PWD":/usr/src/app -w /usr/src/app --rm -it node:14-alpine sh -c 'npm i -g create-nuxt-app && npm init nuxt-app frontend' |
Download latest nodejs .exe (recommended for most users) from https://nodejs.org/en and install. it will replace your previous versionCheck Version:
Nuxt 2 Require:
Nuxt 3 Require:
|
I am getting this error when trying to create a new nuxt app
node -v v12.13.1
` npx create-nuxt-app ui-dev2
internal/modules/cjs/loader.js:800
throw err;
^
Error: Cannot find module '/root/.npm/_npx/26147/lib/node_modules/create-nuxt-app/node_modules/ejs/postinstall.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
at Function.Module._load (internal/modules/cjs/loader.js:690:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
at internal/main/run_main_module.js:17:11 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ejs@2.7.4 postinstall:
node ./postinstall.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ejs@2.7.4 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-11-25T20_35_42_769Z-debug.log
Install for [ 'create-nuxt-app@latest' ] failed with code 1`
The text was updated successfully, but these errors were encountered: