Skip to content
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

postinstall script not included in the release #1075

Closed
mcollina opened this issue Feb 23, 2018 · 8 comments
Closed

postinstall script not included in the release #1075

mcollina opened this issue Feb 23, 2018 · 8 comments

Comments

@mcollina
Copy link

As titled:

> nunjucks@3.1.1 postinstall /home/travis/build/fastify/point-of-view/node_modules/nunjucks
> node scripts/postinstall-build.js src
module.js:559
    throw err;
    ^
Error: Cannot find module '/home/travis/build/fastify/point-of-view/node_modules/nunjucks/scripts/postinstall-build.js'
    at Function.Module._resolveFilename (module.js:557:15)
    at Function.Module._load (module.js:484:25)
    at Function.Module.runMain (module.js:703:10)
    at startup (bootstrap_node.js:193:16)
    at bootstrap_node.js:665:3

See https://travis-ci.org/fastify/point-of-view/jobs/345481378 and fastify/point-of-view#41.

@kristate
Copy link

ref #1073

@fdintino
Copy link
Collaborator

Oh. Right. Because the scripts folder is in .npmignore. Okay, I'll push out an emergency release with a fix.

@fdintino
Copy link
Collaborator

My apologies. The correct script is available in the 3.1.2 release.

@LeoEatle
Copy link

Still has this issue. My version is 3.1.2.

@fdintino
Copy link
Collaborator

@LeoEatle I don't doubt that you're experiencing some issue, but it would have to be something other than the current one (you can see by this travis build that the original issue from this ticket is resolved with 3.1.2. Please open a new ticket with more details about the issue you're running into.

@mcollina
Copy link
Author

Thanks for the swift fix!

@Prasildas
Copy link

HI @fdintino I had the same error as below: Tried with npm 3.1.2 and 4.6.2 and 5.6.0. Still not resolved

D:\Location>npm install npm@3.1.2
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for comp
atibility with current and future versions of Node.js
npm WARN deprecated minimatch@2.0.8: Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN saveError ENOENT: no such file or directory, open 'D:\555724\Learning\T
ripPlan-CodeSkeleton\package.json'
npm WARN npm@3.1.2 had bundled packages that do not match the required version(s
). They have been replaced with non-bundled versions.
npm WARN enoent ENOENT: no such file or directory, open 'D:\555724\Learning\Trip
Plan-CodeSkeleton\package.json'
npm WARN TripPlan-CodeSkeleton No description
npm WARN TripPlan-CodeSkeleton No repository field.
npm WARN TripPlan-CodeSkeleton No README data
npm WARN TripPlan-CodeSkeleton No license field.

  • npm@3.1.2
    added 14 packages from 4 contributors and updated 1 package in 19.029s

D:\555724\Learning\TripPlan-CodeSkeleton>node server
module.js:559
throw err;
^

Error: Cannot find module 'D:...\server'
at Function.Module._resolveFilename (module.js:557:15)
at Function.Module._load (module.js:484:25)
at Function.Module.runMain (module.js:703:10)
at startup (bootstrap_node.js:193:16)
at bootstrap_node.js:660:3

@fdintino
Copy link
Collaborator

@Prasildas I don't see anything in your stack trace that suggests that nunjucks is causing your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants