I have a nest.js app Im trying to get to work on the APP platform, I have installed the app from GIThub the output is saying its working ok but DO fails the deployment
My Output:
[2023-02-08 17:27:15] > node dist/src/main
[2023-02-08 17:27:15]
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [NestFactory] Starting Nest application...
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] MongooseModule dependencies initialized +69ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] PassportModule dependencies initialized +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] JwtModule dependencies initialized +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] ConfigHostModule dependencies initialized +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] AppModule dependencies initialized +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] ConfigModule dependencies initialized +0ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] MongooseCoreModule dependencies initialized +235ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] MongooseModule dependencies initialized +16ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] MongooseModule dependencies initialized +0ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] MongooseModule dependencies initialized +2ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] UsersModule dependencies initialized +2ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] KpiModule dependencies initialized +2ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] HolidaysModule dependencies initialized +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [InstanceLoader] AuthModule dependencies initialized +0ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RoutesResolver] AppController {/}: +7ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RouterExplorer] Mapped {/, GET} route +3ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RoutesResolver] UsersController {/users}: +0ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RouterExplorer] Mapped {/users/users, GET} route +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RouterExplorer] Mapped {/users/users/:username, GET} route +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RouterExplorer] Mapped {/users/signup, POST} route +2ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RoutesResolver] KpiController {/kpi}: +0ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RouterExplorer] Mapped {/kpi/kpis/:userID, GET} route +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RouterExplorer] Mapped {/kpi/kpi, POST} route +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RoutesResolver] AuthController {/auth}: +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RouterExplorer] Mapped {/auth/auth/login, POST} route +2ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RoutesResolver] HolidaysController {/holidays}: +1ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RouterExplorer] Mapped {/holidays/holidays/:userID, GET} route +0ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [RouterExplorer] Mapped {/holidays/holiday, POST} route +3ms
[2023-02-08 17:27:18] [Nest] 17 - 02/08/2023, 5:27:18 PM LOG [NestApplication] Nest application successfully started +5ms
[]
As you can see Nest has started up fine
My App Spec
alerts:
- rule: DEPLOYMENT_FAILED
- rule: DOMAIN_FAILED
name: vmosbackend
region: lon
services:
- build_command: npm run build
environment_slug: node-js
github:
branch: master
deploy_on_push: true
repo: VST-GLOBAL/vstkpibackend
http_port: 8080
instance_count: 1
instance_size_slug: basic-xxs
name: vstkpibackend
routes:
- path: /
run_command: npm run start:prod
source_dir: /
Any ideas?
Updating the port to 3000 worked and allowed the app to deploy
so
http_port: 8080
to
http_port: 3000
Related
After I read prisma article,I can execute npm install prisma --save-dev and npx prisma. After that,
I searched where prisma cli was installed.
multiple cli has symbolic link from node_modules/.bin to its actual file,so I searchprismain this directory but it couldn't be found. where is prisma cli installed ?
~/test/src/test% ls -ltr node_modules/.bin
total 0
lrwxrwxrwx 1 hikarmiy amazon 17 Jan 28 03:08 ts-jest -> ../ts-jest/cli.js
lrwxrwxrwx 1 hikarmiy amazon 27 Jan 28 03:08 prettier -> ../prettier/bin-prettier.js
lrwxrwxrwx 1 hikarmiy amazon 15 Jan 28 03:08 lerna -> ../lerna/cli.js
lrwxrwxrwx 1 hikarmiy amazon 21 Feb 1 04:42 npx -> ../npm/bin/npx-cli.js
lrwxrwxrwx 1 hikarmiy amazon 45 Feb 1 04:42 npm-install-peers -> ../npm-install-peers/bin/npm-install-peers.js
lrwxrwxrwx 1 hikarmiy amazon 21 Feb 1 04:42 npm -> ../npm/bin/npm-cli.js
lrwxrwxrwx 1 hikarmiy amazon 26 Feb 1 09:06 tsserver -> ../typescript/bin/tsserver
lrwxrwxrwx 1 hikarmiy amazon 21 Feb 1 09:06 tsc -> ../typescript/bin/tsc
Thanks
newbie here. I had recently switched over to Visual Studio Code to work with Brain.js but when I go to install it into the terminal (With NPM), I get an Error. I have tried multiple other solutions but none work. Any help would be appreciated. Thanx in advance =>
Since I am new also at Linux, I had tried a few variations of install commands(like sudo) and tried to complete the Brain.js installation on Default Linux terminal but to no avail :( . Also a weird thing is that I was able to download BrainJS(Older lib.) but not Brain.js
Even though i don't think there is any problem with the code, Here is it anyways.
const brain = require("brainjs");
let net = new brain.NeuralNetwork({ hiddenLayers: [3] }); //
Setting up neural network
const restaurants = { // Dataset
"KFC":"Monday",
"Item no.1":"Tuesday",
"Vaango":"Wednesday",
"Taco Bell":"Thursday",
"carls Jr.":"Friday",
"":"Saturday",
"Burger King":"Sunday"
}
const TrainingData = [];
for (let restaurantName in restaurants) {
const dayOfWeek = restaurants[restaurantName];
TrainingData.push({
input: { [dayOfWeek]: 1 },
output: { [restaurantName]: 1 }
});
}
const stats = net.train(TrainingData);
THIS IS THE ERROR MSG I AM GETTING:
npm ERR! Linux 5.0.0-23-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "brain.js"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code EMISSINGARG
npm ERR! typeerror Error: Missing required argument #1
npm ERR! typeerror at andLogAndFinish (/usr/share/npm/lib/fetch-
package-metadata.js:31:3)
npm ERR! typeerror at fetchPackageMetadata
(/usr/share/npm/lib/fetch-package-metadata.js:51:22)
npm ERR! typeerror at resolveWithNewModule
(/usr/share/npm/lib/install/deps.js:456:12)
npm ERR! typeerror at /usr/share/npm/lib/install/deps.js:190:5
npm ERR! typeerror at
/usr/share/npm/node_modules/slide/lib/async-map.js:52:35
npm ERR! typeerror at Array.forEach (<anonymous>)
npm ERR! typeerror at
/usr/share/npm/node_modules/slide/lib/async-map.js:52:11
npm ERR! typeerror at Array.forEach (<anonymous>)
npm ERR! typeerror at asyncMap
(/usr/share/npm/node_modules/slide/lib/async-map.js:51:8)
npm ERR! typeerror at exports.loadRequestedDeps (/usr/share/npm/lib/install/deps.js:188:3)
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror <http://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /home/neel/Documents/VS-Code_Projects/npm-debug.log
AND THE DEBUG LOG:--
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', 'brain.js' ]
2 info using npm#3.5.2
3 info using node#v8.10.0
4 verbose config Skipping project config: /home/neel/.npmrc. (matches userconfig)
5 silly loadCurrentTree Starting
6 silly install loadCurrentTree
7 silly install readLocalPackageData
8 silly fetchPackageMetaData brain.js
9 silly fetchNamedPackageData brain.js
10 silly mapToRegistry name brain.js
11 silly mapToRegistry using default registry
12 silly mapToRegistry registry https://registry.npmjs.org/
13 silly mapToRegistry uri https://registry.npmjs.org/brain.js
14 verbose request uri https://registry.npmjs.org/brain.js
15 verbose request no auth needed
16 info attempt registry request try #1 at 21:59:12
17 verbose request id 74a22560d1b7c23a
18 verbose etag W/"9fb16e14a6b8c1d1ef1c110acba9db6b"
19 verbose lastModified Fri, 09 Aug 2019 11:09:50 GMT
20 http request GET https://registry.npmjs.org/brain.js
21 http 304 https://registry.npmjs.org/brain.js
22 verbose headers { date: 'Tue, 13 Aug 2019 16:29:14 GMT',
22 verbose headers connection: 'keep-alive',
22 verbose headers 'set-cookie':
22 verbose headers [ '__cfduid=d4bf1b2abca3b24131a1907349098099d1565713753; expires=Wed, 12-Aug-20 16:29:13 GMT; path=/; domain=.npmjs.org; HttpOnly' ],
22 verbose headers 'cf-cache-status': 'REVALIDATED',
22 verbose headers 'cache-control': 'max-age=300',
22 verbose headers 'cf-ray': '505c110c8bc58a5f-BOM',
22 verbose headers etag: '"9fb16e14a6b8c1d1ef1c110acba9db6b"',
22 verbose headers 'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
22 verbose headers 'last-modified': 'Fri, 09 Aug 2019 11:09:50 GMT',
22 verbose headers vary: 'accept-encoding, accept',
22 verbose headers 'x-amz-meta-rev': '67-25f3ef5cf61222403c910fbd6b789aa9',
22 verbose headers server: 'cloudflare' }
23 silly get cb [ 304,
23 silly get { date: 'Tue, 13 Aug 2019 16:29:14 GMT',
23 silly get connection: 'keep-alive',
23 silly get 'set-cookie':
23 silly get [ '__cfduid=d4bf1b2abca3b24131a1907349098099d1565713753; expires=Wed, 12-Aug-20 16:29:13 GMT; path=/; domain=.npmjs.org; HttpOnly' ],
23 silly get 'cf-cache-status': 'REVALIDATED',
23 silly get 'cache-control': 'max-age=300',
23 silly get 'cf-ray': '505c110c8bc58a5f-BOM',
23 silly get etag: '"9fb16e14a6b8c1d1ef1c110acba9db6b"',
23 silly get 'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
23 silly get 'last-modified': 'Fri, 09 Aug 2019 11:09:50 GMT',
23 silly get vary: 'accept-encoding, accept',
23 silly get 'x-amz-meta-rev': '67-25f3ef5cf61222403c910fbd6b789aa9',
23 silly get server: 'cloudflare' } ]
24 verbose etag https://registry.npmjs.org/brain.js from cache
25 verbose get saving brain.js to /home/neel/.npm/registry.npmjs.org/brain.js/.cache.json
26 silly install normalizeTree
27 silly loadCurrentTree Finishing
28 silly loadIdealTree Starting
29 silly install loadIdealTree
30 silly cloneCurrentTree Starting
31 silly install cloneCurrentTreeToIdealTree
32 silly cloneCurrentTree Finishing
33 silly loadShrinkwrap Starting
34 silly install loadShrinkwrap
35 silly loadShrinkwrap Finishing
36 silly loadAllDepsIntoIdealTree Starting
37 silly install loadAllDepsIntoIdealTree
38 verbose stack Error: Missing required argument #1
38 verbose stack at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
38 verbose stack at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
38 verbose stack at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
38 verbose stack at /usr/share/npm/lib/install/deps.js:190:5
38 verbose stack at /usr/share/npm/node_modules/slide/lib/async-map.js:52:35
38 verbose stack at Array.forEach (<anonymous>)
38 verbose stack at /usr/share/npm/node_modules/slide/lib/async-map.js:52:11
38 verbose stack at Array.forEach (<anonymous>)
38 verbose stack at asyncMap (/usr/share/npm/node_modules/slide/lib/async-map.js:51:8)
38 verbose stack at exports.loadRequestedDeps (/usr/share/npm/lib/install/deps.js:188:3)
39 verbose cwd /home/neel/Documents/VS-Code_Projects
40 error Linux 5.0.0-23-generic
41 error argv "/usr/bin/node" "/usr/bin/npm" "install" "brain.js"
42 error node v8.10.0
43 error npm v3.5.2
44 error code EMISSINGARG
45 error typeerror Error: Missing required argument #1
45 error typeerror at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
45 error typeerror at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
45 error typeerror at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
45 error typeerror at /usr/share/npm/lib/install/deps.js:190:5
45 error typeerror at /usr/share/npm/node_modules/slide/lib/async-map.js:52:35
45 error typeerror at Array.forEach (<anonymous>)
45 error typeerror at /usr/share/npm/node_modules/slide/lib/async-map.js:52:11
45 error typeerror at Array.forEach (<anonymous>)
45 error typeerror at asyncMap (/usr/share/npm/node_modules/slide/lib/async-map.js:51:8)
45 error typeerror at exports.loadRequestedDeps (/usr/share/npm/lib/install/deps.js:188:3)
46 error typeerror This is an error with npm itself. Please report this error at:
46 error typeerror <http://github.com/npm/npm/issues>
47 verbose exit [ 1, true ]
You state:
Error installing brain.js
But when you go to install require it, you are using "brainjs", not "brain.js":
const brain = require("brainjs");
You are referencing two different libraries, though different by one character. Use this:
const brain = require('brain.js');
npm ERR! npm v3.5.2
As discussed in the comments, this is an old version of NPM and the solution was to update to a newer version.
I am receiving this error when trying to start my node application using the npm start command.
From log
10 verbose lifecycle #~start: CWD: F:\reactjs
11 silly lifecycle #~start: Args: [ '/d /s /c', 'webpack-dev-server --hot' ]
12 silly lifecycle #~start: Returned: code: 4294967295 signal: null
13 info lifecycle #~start: Failed to exec start script
14 verbose stack Error: # start: webpack-dev-server --hot
14 verbose stack Exit status 4294967295
14 verbose stack at EventEmitter. (E:\Program
Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess. (E:\Program
Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:920:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)
15 verbose pkgid #
16 verbose cwd F:\reactjs
17 error Windows_NT 10.0.10586
18 error argv "E:\Program Files\nodejs\node.exe" "E:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
19 error node v6.11.3
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error # start: webpack-dev-server --hot
22 error Exit status 4294967295
23 error Failed at the # start script 'webpack-dev-server --hot'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error webpack-dev-server --hot
23 error You can get information on how to open an issue for this project with:
23 error npm bugs
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls
23 error There is likely additional logging output above.
Your issue is in your webpack configuration.
The line that gives you this error is line 4
Configuration file found but no entry configured
This might help:
Webpack configuration file found but no entry configured
here is the docs on webpack for entry: https://webpack.github.io/docs/configuration.html#entry
I'm following this and try to use pdf.js. I've downloaded and extracted the library and now I was trying to install gulp globally as it says on the page but when I run the command
C:\Users\xx\Desktop\pdfSearch2>npm install -g gulp-cli
I get errors:
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g"
"gulp-cli"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
npm ERR! unable to get local issuer certificate
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\xx\Desktop\pdfSearch2\npm-debug.log
And here is the full npm-debug.log:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli 'gulp-cli' ]
2 info using npm#3.10.8
3 info using node#v6.9.1
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData gulp-cli
8 silly fetchNamedPackageData gulp-cli
9 silly mapToRegistry name gulp-cli
10 silly mapToRegistry using default registry
11 silly mapToRegistry registry https://registry.npmjs.org/
12 silly mapToRegistry data Result {
12 silly mapToRegistry raw: 'gulp-cli',
12 silly mapToRegistry scope: null,
12 silly mapToRegistry escapedName: 'gulp-cli',
12 silly mapToRegistry name: 'gulp-cli',
12 silly mapToRegistry rawSpec: '',
12 silly mapToRegistry spec: 'latest',
12 silly mapToRegistry type: 'tag' }
13 silly mapToRegistry uri https://registry.npmjs.org/gulp-cli
14 verbose request uri https://registry.npmjs.org/gulp-cli
15 verbose request no auth needed
16 info attempt registry request try #1 at 8:39:43 AM
17 verbose request id d0dd4dbe0b1dc495
18 http request GET https://registry.npmjs.org/gulp-cli
19 info retry will retry, error on last attempt: Error: unable to get local issuer certificate
20 info attempt registry request try #2 at 8:39:53 AM
21 http request GET https://registry.npmjs.org/gulp-cli
22 info retry will retry, error on last attempt: Error: unable to get local issuer certificate
23 info attempt registry request try #3 at 8:40:53 AM
24 http request GET https://registry.npmjs.org/gulp-cli
25 silly fetchPackageMetaData Error: unable to get local issuer certificate
25 silly fetchPackageMetaData at Error (native)
25 silly fetchPackageMetaData at TLSSocket.<anonymous> (_tls_wrap.js:1062:38)
25 silly fetchPackageMetaData at emitNone (events.js:86:13)
25 silly fetchPackageMetaData at TLSSocket.emit (events.js:185:7)
25 silly fetchPackageMetaData at TLSSocket._finishInit (_tls_wrap.js:586:8)
25 silly fetchPackageMetaData at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38)
25 silly fetchPackageMetaData error for gulp-cli { Error: unable to get local issuer certificate
25 silly fetchPackageMetaData at Error (native)
25 silly fetchPackageMetaData at TLSSocket.<anonymous> (_tls_wrap.js:1062:38)
25 silly fetchPackageMetaData at emitNone (events.js:86:13)
25 silly fetchPackageMetaData at TLSSocket.emit (events.js:185:7)
25 silly fetchPackageMetaData at TLSSocket._finishInit (_tls_wrap.js:586:8)
25 silly fetchPackageMetaData at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38) code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY' }
26 silly rollbackFailedOptional Starting
27 silly rollbackFailedOptional Finishing
28 silly runTopLevelLifecycles Finishing
29 silly install printInstalled
30 verbose stack Error: unable to get local issuer certificate
30 verbose stack at Error (native)
30 verbose stack at TLSSocket.<anonymous> (_tls_wrap.js:1062:38)
30 verbose stack at emitNone (events.js:86:13)
30 verbose stack at TLSSocket.emit (events.js:185:7)
30 verbose stack at TLSSocket._finishInit (_tls_wrap.js:586:8)
30 verbose stack at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38)
31 verbose cwd C:\Users\xx\Desktop\pdfSearch2
32 error Windows_NT 6.1.7601
33 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "gulp-cli"
34 error node v6.9.1
35 error npm v3.10.8
36 error code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
37 error unable to get local issuer certificate
38 error If you need help, you may report this error at:
38 error <https://github.com/npm/npm/issues>
39 verbose exit [ 1, true ]
Any idea what I'm doing wrong?
thanks
EDIT: so running this C:\Users\antoniob\Desktop\pdfSearch2>npm config set strict-ssl=false has worked but now I don't seem to be able to install the pdf.js dependencies:
C:\Users\xx\Desktop\pdfSearch2>npm install
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\xx\Desktop\pdfSearch2\package.json'
npm WARN pdfSearch2 No description
npm WARN pdfSearch2 No repository field.
npm WARN pdfSearch2 No README data
npm WARN pdfSearch2 No license field.
I have faced thit issue recently, it can be caused by different reasons.
But usually, it is firewall or proxy behind which is your network that cause this error.
My solution was npm config set strict-ssl=false command which cancels check of the SSL certificates by npm. But be warned that this solution is insecure, it is better to configure your firewall or proxy properly. So after packages installing run npm config set strict-ssl=true command.
i have node v.0.10.30 and npm 1.4.21 installed,
when i execute this command
npm install express
i get this as a result
Error: shasum check failed for /tmp/npm-4273-g1Rb0gCE/registry.npmjs.org/express/- /express-4.9.7.tgz
npm ERR! Expected: ae3e0bdf0095749467fde125afd77e7988ff0fbb
npm ERR! Actual: da39a3ee5e6b4b0d3255bfef95601890afd80709
npm ERR! From: https://registry.npmjs.org/express/-/express-4.9.7.tgz
npm ERR! at /usr/lib/node_modules/npm/node_modules/sha/index.js:38:8
npm ERR! at ReadStream.<anonymous>(/usr/lib/node_modules/npm/node_modules/sha/index.js:85:7)
npm ERR! at ReadStream.emit (events.js:117:20)
npm ERR! at _stream_readable.js:938:16
npm ERR! at process._tickCallback (node.js:419:13)
more log from npm-debug.log file
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', 'express' ]
2 info using npm#1.4.21
3 info using node#v0.10.30
4 verbose node symlink /usr/bin/node
5 warn package.json app#0.0.0 No description
6 warn package.json app#0.0.0 No repository field.
7 warn package.json app#0.0.0 No README data
8 verbose readDependencies using package.json deps
9 verbose cache add [ 'express', null ]
19 verbose lock express# /home/wilson/.npm/64a534c1-express.lock
20 silly addNameRange { name: 'express', range: '*', hasData: false }
21 verbose request where is /express
22 verbose request registry https://registry.npmjs.org/
23 verbose request id a071fcd68daa94eb
24 verbose url raw /express
25 verbose url resolving [ 'https://registry.npmjs.org/', './express' ]
26 verbose url resolved https://registry.npmjs.org/express
27 verbose request where is https://registry.npmjs.org/express
28 info trying registry request attempt 1 at 20:00:01
29 verbose etag "7FVLRT9Y9RQJKGVQC7099FKQ4"
30 http GET https://registry.npmjs.org/express
31 http 304 https://registry.npmjs.org/express
32 silly registry.get cb [ 304,
32 silly registry.get { date: 'Sat, 11 Oct 2014 00:00:01 GMT',
32 silly registry.get server: 'Apache',
32 silly registry.get via: '1.1 varnish',
32 silly registry.get 'last-modified': 'Fri, 10 Oct 2014 23:59:57 GMT',
32 silly registry.get 'cache-control': 'max-age=60',
32 silly registry.get etag: '"7FVLRT9Y9RQJKGVQC7099FKQ4"',
32 silly registry.get 'x-served-by': 'cache-iad2130-IAD',
32 silly registry.get 'x-cache': 'HIT',
32 silly registry.get 'x-cache-hits': '2',
32 silly registry.get 'x-timer': 'S1412985601.881420,VS0,VE0',
32 silly registry.get vary: 'Accept',
32 silly registry.get 'content-length': '0',
32 silly registry.get 'keep-alive': 'timeout=10, max=50',
32 silly registry.get connection: 'Keep-Alive' } ]
33 verbose etag https://registry.npmjs.org/express from cache
34 silly addNameRange number 2 { name: 'express', range: '*', hasData: true }
my os is ubuntu 14.04
npm command recommended me to report this log at npm's github repository
download the file https://registry.npmjs.org/express/-/express-4.9.7.tgz
then install from the file
npm install ./express-4.9.7.tgz
Some of these error messages will typically come up when you are not accessing the root admin of the system while executing the install.
When I opened the terminal and ran $ sudo -i to access the #root and then entered $ npm install express , it was installed correctly. Hopefully this helps!
I had a similar issue which was caused by a corrupt download.
It was easily solved by purging the offending package from the cache and re-running the installation.
$ npm cache clean express
$ npm i express
(in my case the corrupt package was a dependency, so I purged it from cache, and not the package that I was trying to install, of course)
First start command prompt as an administrator then run your command.