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

Cannot run npm install #2

Closed
PaulMcGuinness opened this issue May 26, 2020 · 8 comments
Closed

Cannot run npm install #2

PaulMcGuinness opened this issue May 26, 2020 · 8 comments
Labels
bug Something isn't working

Comments

@PaulMcGuinness
Copy link

When running npm install I get the following error

D:\Temp\node_modules\chartjs-chart-pcp>npm install

chartjs-chart-pcp@1.0.0 prepare D:\Temp\node_modules\chartjs-chart-pcp
npm run build:dev

chartjs-chart-pcp@1.0.0 build:dev D:\Temp\node_modules\chartjs-chart-pcp
rollup -c -i src/index.js

[!] Error: Could not resolve entry module (rollup.config.js).
Error: Could not resolve entry module (rollup.config.js).
    at error (D:\Temp\node_modules\chartjs-chart-pcp\node_modules\rollup\dist\shared\rollup.js:161:30)
    at ModuleLoader.loadEntryModule (D:\Temp\node_modules\chartjs-chart-pcp\node_modules\rollup\dist\shared\rollup.js:17598:16)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! chartjs-chart-pcp@1.0.0 build:dev: `rollup -c -i src/index.js`
npm ERR! Exit status 1
@PaulMcGuinness PaulMcGuinness added the bug Something isn't working label May 26, 2020
@sgratzl
Copy link
Owner

sgratzl commented May 26, 2020

can you describe how to reproduce it step by step, please

@PaulMcGuinness
Copy link
Author

From an elevated DOS command prompt in Windows 10:-

md a
cd a
npm install --save chart.js chartjs-chart-pcp

(wait for it to download)

cd node_modules
cd chartjs-chart-pcp
npm install

starts throwing up a lot of deprecated errors....then this:-

npm WARN deprecated rollup-plugin-babel@4.4.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-babel.
npm WARN deprecated rollup-watch@4.3.1: rollup-watch functionality is now included in Rollup itself
npm WARN deprecated rollup-plugin-commonjs@10.1.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-commonjs.
npm WARN deprecated rollup-plugin-node-resolve@5.2.0: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-node-resolve.
npm WARN deprecated chokidar@1.7.0: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

> chartjs-chart-pcp@1.0.0 prepare D:\a\node_modules\chartjs-chart-pcp
> npm run build:dev


> chartjs-chart-pcp@1.0.0 build:dev D:\a\node_modules\chartjs-chart-pcp
> rollup -c -i src/index.js

[!] Error: Could not resolve entry module (rollup.config.js).
Error: Could not resolve entry module (rollup.config.js).
    at error (D:\a\node_modules\chartjs-chart-pcp\node_modules\rollup\dist\shared\rollup.js:161:30)
    at ModuleLoader.loadEntryModule (D:\a\node_modules\chartjs-chart-pcp\node_modules\rollup\dist\shared\rollup.js:17598:16)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! chartjs-chart-pcp@1.0.0 build:dev: `rollup -c -i src/index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the chartjs-chart-pcp@1.0.0 build:dev 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!     C:\Users\Paul McGuinness\AppData\Roaming\npm-cache\_logs\2020-05-26T13_40_29_722Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! chartjs-chart-pcp@1.0.0 prepare: `npm run build:dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the chartjs-chart-pcp@1.0.0 prepare 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!     C:\Users\Paul McGuinness\AppData\Roaming\npm-cache\_logs\2020-05-26T13_40_29_830Z-debug.log

D:\a\node_modules\chartjs-chart-pcp>

@sgratzl
Copy link
Owner

sgratzl commented May 26, 2020

cd node_modules
cd chartjs-chart-pcp
npm install

why this step?

@PaulMcGuinness
Copy link
Author

2020-05-26T13_40_29_722Z-debug.log

Here is the npm log file

@PaulMcGuinness
Copy link
Author

because that's what your instructions say?

Building
npm install
npm run build

I'm just after a normal .js file to include in a web-page front end, not a back-end Node module.

Do please tell me if I'm being a muppet :-)

@PaulMcGuinness
Copy link
Author

( the examples shows ../build/Chart.PCP.js but I can't find the 'build' version, so I assumed that's what I had to do?)

@sgratzl
Copy link
Owner

sgratzl commented May 26, 2020

those instruction are in case you want to build the library in case you check it out the repository and develop it yourself.

In your case you can just download the file from:

https://github.com/sgratzl/chartjs-chart-pcp/releases/tag/v%25s -> assets -> Chart.PCP.js

or link to it via a CDN like unpkg in your website

https://unpkg.com/chartjs-chart-pcp

or take the installed built files in your case in: node_modules/chartjs-chart-pcp/build/Chart.PCP.js

@PaulMcGuinness
Copy link
Author

Many thanks - I'm glad I was just being a muppet :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants