Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Missing script: "build" #2

Open
wuffo opened this issue Jun 28, 2022 · 2 comments
Open

Missing script: "build" #2

wuffo opened this issue Jun 28, 2022 · 2 comments

Comments

@wuffo
Copy link

wuffo commented Jun 28, 2022

When I open in codespaces I see the following in the debug log:

www-data@50c358c89fd6:/workspaces/vscode-remote-try-wp$ cat /var/www/.npm/_logs/2022-06-23T19_17_56_761Z-debug.log
0 verbose cli [
0 verbose cli   '/var/www/.nvm/versions/node/v16.13.0/bin/node',
0 verbose cli   '/var/www/.nvm/versions/node/v16.13.0/bin/npm',
0 verbose cli   'run',
0 verbose cli   'build'
0 verbose cli ]
1 info using [email protected]
2 info using [email protected]
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:/var/www/.nvm/versions/node/v16.13.0/lib/node_modules/npm/npmrc Completed in 1ms
6 timing config:load:builtin Completed in 1ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:/var/www/html/wp-content/plugins/vscode-remote-try-wp/.npmrc Completed in 0ms
10 timing config:load:project Completed in 1ms
11 timing config:load:file:/var/www/.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:/var/www/.nvm/versions/node/v16.13.0/etc/npmrc Completed in 1ms
14 timing config:load:global Completed in 1ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:credentials Completed in 1ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 8ms
19 timing npm:load:configload Completed in 8ms
20 timing npm:load:setTitle Completed in 0ms
21 timing npm:load:setupLog Completed in 0ms
22 timing config:load:flatten Completed in 3ms
23 timing npm:load:cleanupLog Completed in 2ms
24 timing npm:load:configScope Completed in 0ms
25 timing npm:load:projectScope Completed in 0ms
26 timing npm:load Completed in 14ms
27 timing command:run-script Completed in 36ms
28 verbose stack Error: Missing script: "build"
28 verbose stack
28 verbose stack To see a list of scripts, run:
28 verbose stack   npm run
28 verbose stack     at RunScript.run (/var/www/.nvm/versions/node/v16.13.0/lib/node_modules/npm/lib/run-script.js:105:13)
29 verbose cwd /var/www/html/wp-content/plugins/vscode-remote-try-wp
30 verbose Linux 5.4.0-1074-azure
31 verbose argv "/var/www/.nvm/versions/node/v16.13.0/bin/node" "/var/www/.nvm/versions/node/v16.13.0/bin/npm" "run" "build"
32 verbose node v16.13.0
33 verbose npm  v8.1.0
34 error Missing script: "build"
34 error
34 error To see a list of scripts, run:
34 error   npm run
35 verbose exit 1
www-data@50c358c89fd6:/workspaces/vscode-remote-try-wp$ 
@soderlind
Copy link
Owner

soderlind commented Jun 29, 2022

Please try the latest release, and please tell me how it went.

EDIT: sorry, wrong repo. I'll have a look. Might be that the latest nodejs (18.x) is the problem. I had a problem with another build scipt when I ran the latest nodejs

@soderlind
Copy link
Owner

I don't have a scripts section in my package.json, so I believe the problem might be at GitHub codespaces.

You could try to replace my package.json with:

{
  "name": "vscode-remote-try-wp",
  "version": "0.0.1",
  "scripts": {
    "build": "echo \"No build script specified\" && exit 0",
  }
}

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

No branches or pull requests

2 participants